SecurityManager.getKeyManager

Used either generate a HMAC hashed based {@link SecretKey} or lookup a {@link PublicKey}/{@link PrivateKey} from a system keystore or from a remote JSON Web Key (JWK) Set

Javascript example:

  var SECRET_KEY = "ytZj2pZxdp26CF4t@sekPr#C?!VJpD!!";
  //generate AES SecretKey
  var key = system.securityManager.getKeyManager().generateAESSecretKey(SECRET_KEY);
  
 

returns KeyManager