Class OSymmetricKeyCI
java.lang.Object
com.orientechnologies.orient.core.security.symmetrickey.OSymmetricKeyCI
- All Implemented Interfaces:
OCredentialInterceptor
Provides a symmetric key credential interceptor.
The "password" parameter should be a JSON document specifying "keyAlgorithm" and "key", "keyFile", or "keyStore".
The method getPassword() will return a Base64-encoded JSON document with the encrypted "username" as its payload.
- Author:
- S. Colin Leister
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe usual password field should be a JSON representation.
-
Constructor Details
-
OSymmetricKeyCI
public OSymmetricKeyCI()
-
-
Method Details
-
getUsername
- Specified by:
getUsernamein interfaceOCredentialInterceptor
-
getPassword
- Specified by:
getPasswordin interfaceOCredentialInterceptor
-
intercept
The usual password field should be a JSON representation.- Specified by:
interceptin interfaceOCredentialInterceptor- Throws:
OSecurityException
-