congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EcRsaOaep.sign
Code IndexAdd Tabnine to your IDE (free)

How to use
sign
method
in
com.eduworks.ec.crypto.EcRsaOaep

Best Java code snippets using com.eduworks.ec.crypto.EcRsaOaep.sign (Showing top 2 results out of 315)

origin: com.eduworks/org.cassproject.schema.general

/**
 * Sign this object using a private key.
 * Does not check for ownership, objects signed with keys absent from @owner or @reader may be removed.
 *
 * @param {EcPpk} ppk Public private keypair.
 * @method signWith
 */
public void signWith(EcPpk ppk) {
  String signableJson = toSignableJson();
  String signed = EcRsaOaep.sign(ppk, signableJson);
  if (signature != null) {
    for (int i = 0; i < signature.$length(); i++)
      if (signature.$get(i) == signed)
        return;
  } else {
    signature = new Array<String>();
  }
  signature.push(signed);
}
origin: com.eduworks/ebac.identity

/**
 * Create a signature for a specific identity, authorizing movement of data
 * outside of our control.
 *
 * @param {long}   duration Length of time in milliseconds to authorize
 *                 control.
 * @param {String} server Server that we are authorizing.
 * @param {EcPpk}  ppk Key of the identity to create a signature for
 * @return {Ebac Signature} Signature created
 * @memberOf EcIdentityManager
 * @method createSignature
 * @static
 */
public static EbacSignature createSignature(long duration, String server, EcPpk ppk) {
  EbacSignature s = new EbacSignature();
  s.owner = ppk.toPk().toPem();
  s.expiry = new Date().getTime() + duration;
  s.server = server;
  s.signature = EcRsaOaep.sign(ppk, s.toJson());
  return s;
}
com.eduworks.ec.cryptoEcRsaOaepsign

Popular methods of EcRsaOaep

  • verify
  • decrypt
  • encrypt

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now