public static class AuthenticationTokenPolicy.SAMLAssertionBinding extends KeyBindingBase implements LazyKeyBinding
| Modifier and Type | Field and Description |
|---|---|
static String |
HOK_ASSERTION
Holder-Of-Key Subject ConfirmationMethod
|
static String |
SV_ASSERTION
Sender-Vouches Subject ConfirmationMethod
|
static String |
V10_ASSERTION |
static String |
V11_ASSERTION |
static String |
V20_ASSERTION |
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyToken_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID| Constructor and Description |
|---|
SAMLAssertionBinding()
Default constructor
|
SAMLAssertionBinding(String type,
String keyIdentifier,
String authorityIdentifier,
String referenceType)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
clone operatror
|
boolean |
equals(WSSPolicy policy)
equals operator
|
boolean |
equalsIgnoreTargets(WSSPolicy binding) |
Element |
get_assertion() |
Element |
getAssertion() |
String |
getAssertionId()
A CallbackHandler can choose to just set the
AuthorityBinding and the AssertionId, and not set
the actual assertion
|
XMLStreamReader |
getAssertionReader() |
String |
getAssertionType() |
Element |
getAuthorityBinding() |
String |
getAuthorityIdentifier() |
String |
getKeyAlgorithm() |
String |
getKeyIdentifier() |
String |
getRealId() |
String |
getReferenceType() |
String |
getSAMLVersion() |
String |
getSTRID() |
String |
getType()
Get the type of the policy.
|
MLSPolicy |
newPrivateKeyBinding()
Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding
|
void |
setAssertion(Element assertion)
set the SAML Assertion
|
void |
setAssertion(XMLStreamReader reader) |
void |
setAssertionId(String id)
set the AssertionId for the possibly remote assertion
A CallbackHandler can choose to just set the
AuthorityBinding and the AssertionId, and not set
the actual assertion
|
void |
setAssertionType(String type)
set the SubjectConfirmation type of the SAML assertion
|
void |
setAuthorityBinding(Element authorityBinding)
set the SAML AuthorityBinding element, identifying a remote assertion
|
void |
setAuthorityIdentifier(String uri)
set the abstract identifier for the issuing authority
|
void |
setKeyAlgorithm(String algorithm)
set the keyAlgorithm to be used
|
void |
setKeyIdentifier(String ki)
set the abstract identifier for the Confirmation Key
|
void |
setRealId(String realId) |
void |
setReferenceType(String rtype)
set the ReferenceType to be used for references to the SAML Assertion
|
void |
setSAMLVersion(String ver) |
void |
setSTRID(String id) |
String |
toString() |
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlaggetFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDisReadOnly, isReadOnlypublic static final String V10_ASSERTION
public static final String V11_ASSERTION
public static final String V20_ASSERTION
public static final String SV_ASSERTION
public static final String HOK_ASSERTION
public SAMLAssertionBinding()
public SAMLAssertionBinding(String type, String keyIdentifier, String authorityIdentifier, String referenceType)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKkeyIdentifier - an abstract identifier for the Confirmation KeyauthorityIdentifier - an abstract identifier for the issuing authorityreferenceType - the reference type for references to the SAML Assertion,
should be one of KeyIdentifier, Embedded reference type as defined by
WSS SAML Token profile 1.0.public void setAssertionType(String type)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKpublic void setSAMLVersion(String ver)
public String getSAMLVersion()
public MLSPolicy newPrivateKeyBinding()
public void setKeyIdentifier(String ki)
ki - the abstract identifier for the Confirmation Keypublic void setAuthorityIdentifier(String uri)
uri - the URI of the Assertion Issuerpublic void setReferenceType(String rtype)
rtype - reference type (one of KeyIdentifier, Embedded)public void setAuthorityBinding(Element authorityBinding)
authorityBinding - public void setAssertion(Element assertion)
assertion - the SAML Assertionpublic void setAssertion(XMLStreamReader reader)
public void setKeyAlgorithm(String algorithm)
algorithm - the keyAlgorithm to be usedpublic String getKeyAlgorithm()
public String getReferenceType()
public String getAssertionType()
public String getKeyIdentifier()
public String getAuthorityIdentifier()
public Element getAuthorityBinding()
public Element getAssertion()
public XMLStreamReader getAssertionReader()
public boolean equals(WSSPolicy policy)
equals in class WSSPolicypolicy - the policy to be compared for equalitySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets in class WSSPolicypublic Object clone()
WSSPolicyclone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
getType in interface SecurityPolicypublic void setSTRID(String id)
public String getSTRID()
getSTRID in interface LazyKeyBindingpublic void setAssertionId(String id)
id - the Assertion Id of the possibly remote SAML Assertionpublic String getAssertionId()
public Element get_assertion()
public String getRealId()
getRealId in interface LazyKeyBindingpublic void setRealId(String realId)
setRealId in interface LazyKeyBindingCopyright © 2005–2018 Oracle Corporation. All rights reserved.