Class Saml2X509Credential
- java.lang.Object
-
- org.springframework.security.saml2.credentials.Saml2X509Credential
-
@Deprecated public class Saml2X509Credential extends java.lang.Object
Deprecated.UseSaml2X509Credential
insteadSaml2X509Credential is meant to hold an X509 certificate, or an X509 certificate and a private key. Per: https://www.oasis-open.org/committees/download.php/8958/sstc-saml-implementation-guidelines-draft-01.pdf Line: 584, Section 4.3 Credentials Used for both signing, signature verification and encryption/decryption- Since:
- 5.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Saml2X509Credential.Saml2X509CredentialType
Deprecated.UseSaml2X509Credential.Saml2X509CredentialType
instead
-
Constructor Summary
Constructors Constructor Description Saml2X509Credential(java.security.cert.X509Certificate certificate, Saml2X509Credential.Saml2X509CredentialType... types)
Deprecated.Creates a Saml2X509Credentials representing Identity Provider credentials for verification, encryption or both.Saml2X509Credential(java.security.PrivateKey privateKey, java.security.cert.X509Certificate certificate, java.util.Set<Saml2X509Credential.Saml2X509CredentialType> types)
Deprecated.Saml2X509Credential(java.security.PrivateKey privateKey, java.security.cert.X509Certificate certificate, Saml2X509Credential.Saml2X509CredentialType... types)
Deprecated.Creates a Saml2X509Credentials representing Service Provider credentials for signing, decryption or both.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.java.security.cert.X509Certificate
getCertificate()
Deprecated.Returns the X509 certificate for ths credential.protected java.util.Set<Saml2X509Credential.Saml2X509CredentialType>
getCredentialTypes()
Deprecated.Returns the credential types for this credential.java.security.PrivateKey
getPrivateKey()
Deprecated.Returns the private key, or null if this credential type doesn't require one.int
hashCode()
Deprecated.boolean
isDecryptionCredential()
Deprecated.Returns true if the credential has a private key and can be used for decryption, the types will containSaml2X509Credential.Saml2X509CredentialType.DECRYPTION
.boolean
isEncryptionCredential()
Deprecated.Returns true if the credential has a certificate and can be used for signature verification, the types will containSaml2X509Credential.Saml2X509CredentialType.VERIFICATION
.boolean
isSignatureVerficationCredential()
Deprecated.Returns true if the credential has a certificate and can be used for signature verification, the types will containSaml2X509Credential.Saml2X509CredentialType.VERIFICATION
.boolean
isSigningCredential()
Deprecated.Returns true if the credential has a private key and can be used for signing, the types will containSaml2X509Credential.Saml2X509CredentialType.SIGNING
.
-
-
-
Constructor Detail
-
Saml2X509Credential
public Saml2X509Credential(java.security.cert.X509Certificate certificate, Saml2X509Credential.Saml2X509CredentialType... types)
Deprecated.Creates a Saml2X509Credentials representing Identity Provider credentials for verification, encryption or both.- Parameters:
certificate
- an IDP X509Certificate, cannot be nulltypes
- credential types, must be one ofSaml2X509Credential.Saml2X509CredentialType.VERIFICATION
orSaml2X509Credential.Saml2X509CredentialType.ENCRYPTION
or both.
-
Saml2X509Credential
public Saml2X509Credential(java.security.PrivateKey privateKey, java.security.cert.X509Certificate certificate, Saml2X509Credential.Saml2X509CredentialType... types)
Deprecated.Creates a Saml2X509Credentials representing Service Provider credentials for signing, decryption or both.- Parameters:
privateKey
- a private key used for signing or decryption, cannot be nullcertificate
- an SP X509Certificate shared with identity providers, cannot be nulltypes
- credential types, must be one ofSaml2X509Credential.Saml2X509CredentialType.SIGNING
orSaml2X509Credential.Saml2X509CredentialType.DECRYPTION
or both.
-
Saml2X509Credential
public Saml2X509Credential(java.security.PrivateKey privateKey, java.security.cert.X509Certificate certificate, java.util.Set<Saml2X509Credential.Saml2X509CredentialType> types)
Deprecated.
-
-
Method Detail
-
isSigningCredential
public boolean isSigningCredential()
Deprecated.Returns true if the credential has a private key and can be used for signing, the types will containSaml2X509Credential.Saml2X509CredentialType.SIGNING
.- Returns:
- true if the credential is a
Saml2X509Credential.Saml2X509CredentialType.SIGNING
type
-
isDecryptionCredential
public boolean isDecryptionCredential()
Deprecated.Returns true if the credential has a private key and can be used for decryption, the types will containSaml2X509Credential.Saml2X509CredentialType.DECRYPTION
.- Returns:
- true if the credential is a
Saml2X509Credential.Saml2X509CredentialType.DECRYPTION
type
-
isSignatureVerficationCredential
public boolean isSignatureVerficationCredential()
Deprecated.Returns true if the credential has a certificate and can be used for signature verification, the types will containSaml2X509Credential.Saml2X509CredentialType.VERIFICATION
.- Returns:
- true if the credential is a
Saml2X509Credential.Saml2X509CredentialType.VERIFICATION
type
-
isEncryptionCredential
public boolean isEncryptionCredential()
Deprecated.Returns true if the credential has a certificate and can be used for signature verification, the types will containSaml2X509Credential.Saml2X509CredentialType.VERIFICATION
.- Returns:
- true if the credential is a
Saml2X509Credential.Saml2X509CredentialType.VERIFICATION
type
-
getCredentialTypes
protected java.util.Set<Saml2X509Credential.Saml2X509CredentialType> getCredentialTypes()
Deprecated.Returns the credential types for this credential.- Returns:
- a set of credential types/usages that this credential can be used for
-
getPrivateKey
public java.security.PrivateKey getPrivateKey()
Deprecated.Returns the private key, or null if this credential type doesn't require one.- Returns:
- the private key, or null
- See Also:
Saml2X509Credential(PrivateKey, X509Certificate, Saml2X509CredentialType...)
-
getCertificate
public java.security.cert.X509Certificate getCertificate()
Deprecated.Returns the X509 certificate for ths credential. Cannot be null- Returns:
- the X509 certificate
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-