public abstract class AbstractSAMLCallbackHandler extends Object implements SAMLCallbackHandler
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSAMLCallbackHandler.Statement |
Modifier and Type | Field and Description |
---|---|
protected org.apache.ws.security.saml.ext.bean.KeyInfoBean.CERT_IDENTIFIER |
certIdentifier |
protected X509Certificate[] |
certs |
protected String |
confirmationMethod |
protected List<?> |
customAttributeValues |
protected byte[] |
ephemeralKey |
protected String |
issuer |
protected String |
resource |
protected AbstractSAMLCallbackHandler.Statement |
statement |
protected String |
subjectLocalityDnsAddress |
protected String |
subjectLocalityIpAddress |
protected String |
subjectName |
protected String |
subjectNameIDFormat |
protected String |
subjectQualifier |
Constructor and Description |
---|
AbstractSAMLCallbackHandler(org.apache.ws.security.components.crypto.Crypto crypto,
String alias,
String assertionTypeFriendlyName,
String confirmationMethodFriendlyName)
Use this for signed assertion
|
AbstractSAMLCallbackHandler(String assertionTypeFriendlyName,
String confirmationMethodFriendlyName)
Use this is for unsigned assertions
|
Modifier and Type | Method and Description |
---|---|
protected void |
createAndSetStatement(org.apache.ws.security.saml.ext.bean.SubjectBean subjectBean,
org.apache.ws.security.saml.ext.SAMLCallback callback)
Note that the SubjectBean parameter should be null for SAML2.0
|
protected org.apache.ws.security.saml.ext.bean.KeyInfoBean |
createKeyInfo() |
String |
getAlias() |
org.apache.ws.security.components.crypto.Crypto |
getCrypto() |
byte[] |
getEphemeralKey() |
void |
setAlias(String alias) |
void |
setCertIdentifier(org.apache.ws.security.saml.ext.bean.KeyInfoBean.CERT_IDENTIFIER certIdentifier) |
void |
setCerts(X509Certificate[] certs) |
void |
setCrypto(org.apache.ws.security.components.crypto.Crypto crypto) |
void |
setCustomAttributeName(String customAttributeName) |
void |
setCustomAttributeValues(List<?> customAttributeValues) |
void |
setIssuer(String issuer) |
void |
setResource(String resource) |
void |
setStatement(String statement) |
void |
setSubjectLocality(String ipAddress,
String dnsAddress) |
void |
setSubjectName(String subjectName) |
void |
setSubjectNameIDFormat(String subjectNameIDFormat) |
void |
setSubjectQualifier(String subjectQualifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConfirmationMethod
handle
protected String subjectName
protected String subjectQualifier
protected String confirmationMethod
protected X509Certificate[] certs
protected AbstractSAMLCallbackHandler.Statement statement
protected org.apache.ws.security.saml.ext.bean.KeyInfoBean.CERT_IDENTIFIER certIdentifier
protected byte[] ephemeralKey
protected String issuer
protected String subjectNameIDFormat
protected String subjectLocalityIpAddress
protected String subjectLocalityDnsAddress
protected String resource
protected List<?> customAttributeValues
public AbstractSAMLCallbackHandler(org.apache.ws.security.components.crypto.Crypto crypto, String alias, String assertionTypeFriendlyName, String confirmationMethodFriendlyName)
public void setCertIdentifier(org.apache.ws.security.saml.ext.bean.KeyInfoBean.CERT_IDENTIFIER certIdentifier)
setCertIdentifier
in interface SAMLCallbackHandler
public void setCerts(X509Certificate[] certs)
setCerts
in interface SAMLCallbackHandler
public byte[] getEphemeralKey()
getEphemeralKey
in interface SAMLCallbackHandler
public void setIssuer(String issuer)
setIssuer
in interface SAMLCallbackHandler
public void setSubjectName(String subjectName)
setSubjectName
in interface SAMLCallbackHandler
public void setSubjectQualifier(String subjectQualifier)
setSubjectQualifier
in interface SAMLCallbackHandler
public void setSubjectNameIDFormat(String subjectNameIDFormat)
setSubjectNameIDFormat
in interface SAMLCallbackHandler
public void setSubjectLocality(String ipAddress, String dnsAddress)
setSubjectLocality
in interface SAMLCallbackHandler
public void setResource(String resource)
setResource
in interface SAMLCallbackHandler
public void setCustomAttributeName(String customAttributeName)
setCustomAttributeName
in interface SAMLCallbackHandler
public void setCustomAttributeValues(List<?> customAttributeValues)
setCustomAttributeValues
in interface SAMLCallbackHandler
public org.apache.ws.security.components.crypto.Crypto getCrypto()
getCrypto
in interface SAMLCallbackHandler
public void setCrypto(org.apache.ws.security.components.crypto.Crypto crypto)
setCrypto
in interface SAMLCallbackHandler
public String getAlias()
getAlias
in interface SAMLCallbackHandler
public void setAlias(String alias)
setAlias
in interface SAMLCallbackHandler
public void setStatement(String statement)
setStatement
in interface SAMLCallbackHandler
protected void createAndSetStatement(org.apache.ws.security.saml.ext.bean.SubjectBean subjectBean, org.apache.ws.security.saml.ext.SAMLCallback callback)
Copyright © 2019. All Rights Reserved.