Package com.auth0.client.auth
Class RSAClientAssertionSigner
java.lang.Object
com.auth0.client.auth.RSAClientAssertionSigner
- All Implemented Interfaces:
ClientAssertionSigner
An implementation of ClientAssertionSigner for RSA-signed client assertions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the RSA algorithms available to sign the client assertion. -
Constructor Summary
ConstructorsConstructorDescriptionRSAClientAssertionSigner(RSAPrivateKey assertionSigningKey) Creates a new instance using the RSA256 signing algorithm.RSAClientAssertionSigner(RSAPrivateKey assertionSigningKey, RSAClientAssertionSigner.RSASigningAlgorithm assertionSigningAlgorithm) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateSignedClientAssertion(String issuer, String audience, String subject) Creates a signed JWT representing a client assertion used to authenticate to the Authentication API.
-
Constructor Details
-
RSAClientAssertionSigner
public RSAClientAssertionSigner(RSAPrivateKey assertionSigningKey, RSAClientAssertionSigner.RSASigningAlgorithm assertionSigningAlgorithm) Creates a new instance.- Parameters:
assertionSigningKey- the private key used to sign the assertion. Must not be null.assertionSigningAlgorithm- The RSA algorithm used to sign the assertion. Must not be null.- See Also:
-
RSAClientAssertionSigner
Creates a new instance using the RSA256 signing algorithm.- Parameters:
assertionSigningKey- the private key used to sign the assertion. Must not be null.- See Also:
-
-
Method Details
-
createSignedClientAssertion
Description copied from interface:ClientAssertionSignerCreates a signed JWT representing a client assertion used to authenticate to the Authentication API.- Specified by:
createSignedClientAssertionin interfaceClientAssertionSigner- Parameters:
issuer- the Issuer. This MUST contain the client_id of the OAuth Client.audience- the audience that identifies the Authorization Server as an intended audience.subject- the Subject. This MUST contain the client_id of the OAuth Client.- Returns:
- a signed JWT representing the client assertion.
-