public class DefaultSubjectProvider extends Object implements SubjectProvider
Constructor and Description |
---|
DefaultSubjectProvider() |
Modifier and Type | Method and Description |
---|---|
protected static KeyInfoBean |
createEncryptedKeyKeyInfo(X509Certificate certificate,
byte[] secret,
Document doc,
EncryptionProperties encryptionProperties,
Crypto encryptionCrypto)
Create an EncryptedKey KeyInfo.
|
protected KeyInfoBean |
createKeyInfo(SubjectProviderParameters subjectProviderParameters)
Create and return the KeyInfoBean to be inserted into the SubjectBean
|
protected static KeyInfoBean |
createPublicKeyKeyInfo(X509Certificate certificate,
PublicKey publicKey)
Create a KeyInfoBean that contains an X.509 certificate or Public Key
|
protected 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).
|
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 SubjectBean getSubject(SubjectProviderParameters subjectProviderParameters)
getSubject
in interface SubjectProvider
protected Principal getPrincipal(SubjectProviderParameters subjectProviderParameters)
protected SubjectBean createSubjectBean(Principal principal, SubjectProviderParameters subjectProviderParameters)
protected String getSubjectConfirmationMethod(String tokenType, String keyType)
protected KeyInfoBean createKeyInfo(SubjectProviderParameters subjectProviderParameters)
protected static KeyInfoBean createPublicKeyKeyInfo(X509Certificate certificate, PublicKey publicKey)
protected static KeyInfoBean createEncryptedKeyKeyInfo(X509Certificate certificate, byte[] secret, Document doc, EncryptionProperties encryptionProperties, Crypto encryptionCrypto) throws WSSecurityException
WSSecurityException
Copyright © 2021 JBoss by Red Hat. All rights reserved.