Class JWTRS256Authenticator
java.lang.Object
com.exclamationlabs.connid.base.connector.authenticator.JWTAuthenticator
com.exclamationlabs.connid.base.connector.authenticator.JWTRS256Authenticator
- All Implemented Interfaces:
Authenticator
public abstract class JWTRS256Authenticator extends JWTAuthenticator
This JWT authenticator implementation performs the HS256 strategy.
Private key is required. This implementation does not utilize a
public key since only the private key is needed for signing.
Since a private key is required, this Authenticator must be subclassed
and getPrivateKey() overriden to get access to the required private key.
JWS: RS256
Algorithm: RSA256
Description: RSASSA-PKCS1-v1_5 with SHA-256
-
Constructor Summary
Constructors Constructor Description JWTRS256Authenticator()
-
Method Summary
Modifier and Type Method Description String
authenticate(ConnectorConfiguration configuration)
Perform all required authentication needed for this connector.protected abstract RSAPrivateKey
getPrivateKey()
protected abstract Set<ConnectorProperty>
getPrivateKeyLoaderPropertyNames()
Set<ConnectorProperty>
getRequiredPropertyNames()
Returns the names of the properties for properties that must be present in order for this Authenticator to function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.exclamationlabs.connid.base.connector.authenticator.Authenticator
getAdditionalAuthenticationHeaders
-
Constructor Details
-
JWTRS256Authenticator
public JWTRS256Authenticator()
-
-
Method Details
-
getRequiredPropertyNames
Description copied from interface:Authenticator
Returns the names of the properties for properties that must be present in order for this Authenticator to function. This method should return the required property names for any sub-authenticators or key loaders that it uses.- Returns:
- Set containing property names, represented as a set of enum values. Returning null or an empty set is also allowed if there are no properties for this driver.
-
getPrivateKey
-
getPrivateKeyLoaderPropertyNames
-
authenticate
public String authenticate(ConnectorConfiguration configuration) throws org.identityconnectors.framework.common.exceptions.ConnectorSecurityExceptionDescription copied from interface:Authenticator
Perform all required authentication needed for this connector.- Parameters:
configuration
- The configuration object respective to this connector- Returns:
- String containing an access token or other value produced as a result of authentication. In some implementations this could return a String flag of some kind or null if authenticator has no meaningful output or actual authentication.
- Throws:
org.identityconnectors.framework.common.exceptions.ConnectorSecurityException
- if could not authenticate or permissions was denied
-