|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.sts.token.provider.DefaultSubjectProvider
public class DefaultSubjectProvider
A default implementation of SubjectProvider to create a SAML Assertion. The Subject name is the name of the current principal, the subject name qualifier is a default URL that can be configured, and the subject confirmation method is created according to the token type and key type. If the Subject Confirmation Method is SymmetricKey or PublicKey, the appropriate KeyInfoBean object is created and attached to the Subject.
Constructor Summary | |
---|---|
DefaultSubjectProvider()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSubjectProvider()
Method Detail |
---|
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 SubjectProvider
protected 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.WSSecurityException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |