Package net.shibboleth.idp.saml.security
Class KeyAuthoritySupport
- java.lang.Object
-
- net.shibboleth.idp.saml.security.KeyAuthoritySupport
-
public final class KeyAuthoritySupport extends Object
Utility class for extractingPKIXValidationInformationfrom aKeyAuthority.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyAuthoritySupport.KeyAuthorityPKIXValidationInformationBasic implementation ofPKIXValidationInformation.
-
Field Summary
Fields Modifier and Type Field Description static intKEY_AUTHORITY_VERIFY_DEPTH_DEFAULTDefault value for Shibboleth KeyAuthority verify depth.
-
Constructor Summary
Constructors Modifier Constructor Description privateKeyAuthoritySupport()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PKIXValidationInformationextractPKIXValidationInfo(KeyAuthority keyAuthority)Extracts PKIX validation information from the Shibboleth KeyAuthority metadata extension element.private static Collection<X509Certificate>getX509Certificates(KeyInfo keyInfo)Extract certificates from a KeyInfo element.private static Collection<X509CRL>getX509CRLs(KeyInfo keyInfo)Extract CRL's from a KeyInfo element.
-
-
-
Field Detail
-
KEY_AUTHORITY_VERIFY_DEPTH_DEFAULT
public static final int KEY_AUTHORITY_VERIFY_DEPTH_DEFAULT
Default value for Shibboleth KeyAuthority verify depth.- See Also:
- Constant Field Values
-
-
Method Detail
-
extractPKIXValidationInfo
@Nullable public static PKIXValidationInformation extractPKIXValidationInfo(@Nullable KeyAuthority keyAuthority) throws SecurityException
Extracts PKIX validation information from the Shibboleth KeyAuthority metadata extension element.- Parameters:
keyAuthority- the Shibboleth KeyAuthority element from which to extract information- Returns:
- an instance of extracted PKIX validation information
- Throws:
SecurityException- thrown if the key, certificate, or CRL information is represented in an unsupported format
-
getX509Certificates
@Nonnull private static Collection<X509Certificate> getX509Certificates(@Nullable KeyInfo keyInfo) throws SecurityException
Extract certificates from a KeyInfo element.- Parameters:
keyInfo- the KeyInfo instance from which to extract certificates- Returns:
- a collection of X509 certificates, possibly empty
- Throws:
SecurityException- thrown if the certificate information is represented in an unsupported format
-
getX509CRLs
@Nonnull private static Collection<X509CRL> getX509CRLs(@Nullable KeyInfo keyInfo) throws SecurityException
Extract CRL's from a KeyInfo element.- Parameters:
keyInfo- the KeyInfo instance from which to extract CRL's- Returns:
- a collection of X509 CRL's, possibly empty
- Throws:
SecurityException- thrown if the CRL information is represented in an unsupported format
-
-