public class SADParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SADParser.SADValidator
A validator for verifying the SAD JWT.
|
Modifier and Type | Method and Description |
---|---|
static SADParser.SADValidator |
getValidator(EntityDescriptor idpMetadata)
Returns a SAD validator initialized with the IdP
EntityDescriptor (metadata) from which the IdP signing
key/certificate will be read (needed for JWT signature validation). |
static SADParser.SADValidator |
getValidator(se.litsec.opensaml.saml2.metadata.provider.MetadataProvider metadataProvider)
Returns a SAD validator initialized with a
MetadataProvider instance. |
static SADParser.SADValidator |
getValidator(X509Certificate... validationCertificates)
Returns a SAD validator initialized with a set of certificates that are to be used for JWT signature validation.
|
static SAD |
parse(String sadJwt)
Parses the supplied (encoded) JWT and returns the contained JWT.
|
public static SAD parse(String sadJwt) throws IOException
Note: The parse method does not peform any validation. Use the SADParser.SADValidator
class for this purpose.
sadJwt
- the signed JWT holding the SADIOException
- for parsing errorspublic static SADParser.SADValidator getValidator(X509Certificate... validationCertificates)
validationCertificates
- certificate(s) to be used when verifying the JWT signatureSADValidator
instancepublic static SADParser.SADValidator getValidator(se.litsec.opensaml.saml2.metadata.provider.MetadataProvider metadataProvider)
MetadataProvider
instance. During JWT signature validation the
IdP signature certificate will be obtained from the IdP metadata entry held by the metadata provider.metadataProvider
- metadata providerSADValidator
instancepublic static SADParser.SADValidator getValidator(EntityDescriptor idpMetadata)
EntityDescriptor
(metadata) from which the IdP signing
key/certificate will be read (needed for JWT signature validation).idpMetadata
- the IdP metadataSADValidator
instanceCopyright © 2018 Litsec AB. All rights reserved.