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 |
createEncryptedKeyKeyInfo(X509Certificate certificate,
byte[] secret,
Document doc,
EncryptionProperties encryptionProperties,
org.apache.wss4j.common.crypto.Crypto encryptionCrypto)
Create an EncryptedKey KeyInfo.
|
protected org.apache.wss4j.common.saml.bean.KeyInfoBean |
createKeyInfo(SubjectProviderParameters subjectProviderParameters)
Create and return the KeyInfoBean to be inserted into the SubjectBean
|
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean |
createPublicKeyKeyInfo(X509Certificate certificate,
PublicKey publicKey)
Create a KeyInfoBean that contains an X.509 certificate or Public Key
|
protected org.apache.wss4j.common.saml.bean.SubjectBean |
createSubjectBean(Principal principal,
SubjectProviderParameters subjectProviderParameters)
Create the SubjectBean using the specified principal.
|
protected Principal |
getPrincipal(SubjectProviderParameters subjectProviderParameters)
Get the Principal (which is used as the Subject).
|
org.apache.wss4j.common.saml.bean.SubjectBean |
getSubject(SubjectProviderParameters subjectProviderParameters)
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(SubjectProviderParameters subjectProviderParameters)
getSubject
in interface SubjectProvider
protected Principal getPrincipal(SubjectProviderParameters subjectProviderParameters)
protected org.apache.wss4j.common.saml.bean.SubjectBean createSubjectBean(Principal principal, SubjectProviderParameters subjectProviderParameters)
protected String getSubjectConfirmationMethod(String tokenType, String keyType)
protected org.apache.wss4j.common.saml.bean.KeyInfoBean createKeyInfo(SubjectProviderParameters subjectProviderParameters)
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean createPublicKeyKeyInfo(X509Certificate certificate, PublicKey publicKey)
protected static org.apache.wss4j.common.saml.bean.KeyInfoBean createEncryptedKeyKeyInfo(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.WSSecurityException
Apache CXF