public class DefaultSubjectProvider extends Object implements SubjectProvider
| Constructor and Description |
|---|
DefaultSubjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean |
createKeyInfo(X509Certificate certificate,
byte[] secret,
Document doc,
EncryptionProperties encryptionProperties,
org.apache.wss4j.common.crypto.Crypto encryptionCrypto)
Create an EncryptedKey KeyInfo.
|
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean |
createKeyInfo(X509Certificate certificate,
PublicKey publicKey)
Create a KeyInfoBean that contains an X.509 certificate or Public Key
|
org.apache.wss4j.common.saml.bean.SubjectBean |
getSubject(TokenProviderParameters providerParameters,
Document doc,
byte[] secret)
Get a SubjectBean object.
|
protected String |
getSubjectConfirmationMethod(String tokenType,
String keyType)
Get the SubjectConfirmation method given a tokenType and keyType
|
void |
setSubjectNameIDFormat(String subjectNameIDFormat)
Set the SubjectNameIDFormat.
|
void |
setSubjectNameQualifier(String subjectNameQualifier)
Set the SubjectNameQualifier.
|
public void setSubjectNameQualifier(String subjectNameQualifier)
public void setSubjectNameIDFormat(String subjectNameIDFormat)
public org.apache.wss4j.common.saml.bean.SubjectBean getSubject(TokenProviderParameters providerParameters, Document doc, byte[] secret)
getSubject in interface SubjectProviderprotected String getSubjectConfirmationMethod(String tokenType, String keyType)
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean createKeyInfo(X509Certificate certificate, PublicKey publicKey)
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean createKeyInfo(X509Certificate certificate, byte[] secret, Document doc, EncryptionProperties encryptionProperties, org.apache.wss4j.common.crypto.Crypto encryptionCrypto) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionApache CXF