core/src/main/java/com/orientechnologies/orient/core/security/symmetrickey/OSymmetricKey.java
public static OSymmetricKey fromStream(final String algorithm, final InputStream is) {
    String base64Key = null;

    try {
      base64Key = OIOUtils.readStreamAsString(is);
    } catch (Exception ex) {
      throw OException.wrapException(new OSecurityException("OSymmetricKey.fromStream() Exception: " + ex.getMessage()), ex);
    }

    return new OSymmetricKey(algorithm, base64Key);
  }
public static OSymmetricKey fromStream(final String algorithm, final InputStream is) {
    String base64Key = null;

    try {
      base64Key = OIOUtils.readStreamAsString(is);
    } catch (Exception ex) {
      throw OException.wrapException(new OSecurityException("OSymmetricKey.fromStream() Exception: " + ex.getMessage()), ex);
    }

    return new OSymmetricKey(algorithm, base64Key);
  }
public static OSymmetricKey fromStream ( final String algorithm , final InputStream is ) { String base64Key = null ; try { base64Key = OIOUtils . readStreamAsString ( is ) ; } catch ( Exception ex ) { throw OException . wrapException ( new OSecurityException ( "OSymmetricKey.fromStream() Exception: " + ex . getMessage ( ) ) , ex ) ; } return new OSymmetricKey ( algorithm , base64Key ) ; }
Creates an OSymmetricKey from an InputStream containing a Base64 key.
Creates an OSymmetricKey from an InputStream containing a Base64 key .