Package com.pingidentity.access
Class JwksEndpointKeyAccessor
- java.lang.Object
-
- com.pingidentity.access.JwksEndpointKeyAccessor
-
public final class JwksEndpointKeyAccessor extends Object
This class provides access to PingFederate's JSON web keys. These keys are exposed at the /pf/JWKS endpoint; partners are able to use the endpoint contents to verify JWT signatures.- Since:
- 10.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJwksEndpointKeyAccessor.JsonWebKeyWrapperThe JSON web key wrapper object containing the Key ID, JSON web key and the private key.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JwksEndpointKeyAccessor.JsonWebKeyWrappergetCurrentEcKey(String curveName)Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with the current EC signing key associated with the curve name ornullif the EC signing key associated with the requested curve is not present.JwksEndpointKeyAccessor.JsonWebKeyWrappergetCurrentRsaKey()Deprecated.since 11.3,getCurrentRsaKey(String)should be used instead.JwksEndpointKeyAccessor.JsonWebKeyWrappergetCurrentRsaKey(String signingAlgorithm)Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.org.jose4j.jwk.JsonWebKeySetgetDecryptionKeys()Returns aJsonWebKeySetinstance containing all available decryption keysJwksEndpointKeyAccessor.JsonWebKeyWrappergetKeyById(String kid)Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with a JWK representing thekidparameter ornullif the JWK is not found.org.jose4j.jwk.JsonWebKeySetgetSigningJsonWebKeySet()Returns aJsonWebKeySetinstance containing all available internal JSON web keysstatic JwksEndpointKeyAccessornewInstance()Returns a new instance ofJwksEndpointKeyAccessor
-
-
-
Method Detail
-
newInstance
public static JwksEndpointKeyAccessor newInstance()
Returns a new instance ofJwksEndpointKeyAccessor- Returns:
- a new instance of
JwksEndpointKeyAccessor - Since:
- 10.1
-
getCurrentRsaKey
@Deprecated public JwksEndpointKeyAccessor.JsonWebKeyWrapper getCurrentRsaKey()
Deprecated.since 11.3,getCurrentRsaKey(String)should be used instead.Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperornull - Since:
- 10.1
-
getCurrentRsaKey
public JwksEndpointKeyAccessor.JsonWebKeyWrapper getCurrentRsaKey(String signingAlgorithm)
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with current RSA signing key ornullif RSA signing key is not present.- Parameters:
signingAlgorithm- Signing algorithm the RSA key is intended to be used for.- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperintended to be used with the inout signing algorithm ornull - Since:
- 11.3
-
getCurrentEcKey
public JwksEndpointKeyAccessor.JsonWebKeyWrapper getCurrentEcKey(String curveName)
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with the current EC signing key associated with the curve name ornullif the EC signing key associated with the requested curve is not present.- Parameters:
curveName- the curve name associated with the EC signing key to find- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperornull - Since:
- 10.1
-
getKeyById
public JwksEndpointKeyAccessor.JsonWebKeyWrapper getKeyById(String kid)
Returns an instance ofJwksEndpointKeyAccessor.JsonWebKeyWrapperpopulated with a JWK representing thekidparameter ornullif the JWK is not found.- Parameters:
kid- the ID of the key to find- Returns:
- an instance of
JwksEndpointKeyAccessor.JsonWebKeyWrapperor null - Since:
- 10.1
-
getSigningJsonWebKeySet
public org.jose4j.jwk.JsonWebKeySet getSigningJsonWebKeySet()
Returns aJsonWebKeySetinstance containing all available internal JSON web keys- Returns:
- a
JsonWebKeySetinstance - Since:
- 10.1
-
getDecryptionKeys
public org.jose4j.jwk.JsonWebKeySet getDecryptionKeys()
Returns aJsonWebKeySetinstance containing all available decryption keys- Returns:
- a
JsonWebKeySetinstance - Since:
- 11.3
-
-