public class KeyIdentifierStrategy extends KeyInfoStrategy
| Modifier and Type | Field and Description |
|---|---|
static int |
ENCRYPTEDKEYSHA1 |
protected static Logger |
log |
static int |
THUMBPRINT |
| Constructor and Description |
|---|
KeyIdentifierStrategy() |
KeyIdentifierStrategy(int value) |
KeyIdentifierStrategy(String samlAssertionId) |
KeyIdentifierStrategy(String alias,
boolean forSigning) |
KeyIdentifierStrategy(String alias,
boolean forSigning,
boolean thumbprint) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias() |
void |
insertKey(KeyInfoHeaderBlock keyInfo,
SecurableSoapMessage secureMsg,
String x509TokenId)
insert the Key Information into a ds:KeyInfo using the
appropriate scheme
|
void |
insertKey(SecurityTokenReference tokenRef,
SecurableSoapMessage secureMsg)
insert the Key Information into a SecurityTokenReference using the
appropriate scheme
|
void |
setCertificate(X509Certificate cert)
Sets the certificate corresponding to the security operation
|
getInstancepublic static final int THUMBPRINT
public static final int ENCRYPTEDKEYSHA1
protected static final Logger log
public KeyIdentifierStrategy()
public KeyIdentifierStrategy(int value)
public KeyIdentifierStrategy(String samlAssertionId)
public KeyIdentifierStrategy(String alias, boolean forSigning)
public KeyIdentifierStrategy(String alias, boolean forSigning, boolean thumbprint)
public void insertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) throws XWSSecurityException
KeyInfoStrategyinsertKey in class KeyInfoStrategytokenRef - the SecurityTokenReference into which the Key Information
has to be inserted.secureMsg - the SecurableSoapMessageXWSSecurityException - if there was a problem in inserting the key informationpublic void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) throws XWSSecurityException
KeyInfoStrategyinsertKey in class KeyInfoStrategykeyInfo - the KeyInfo block into which the Key Information has to be inserted.secureMsg - the SecurableSoapMessagex509TokenId - value of the <xwss:X509Token>/@id in config fileXWSSecurityException - if there was a problem in inserting the key informationpublic void setCertificate(X509Certificate cert)
KeyInfoStrategysetCertificate in class KeyInfoStrategypublic String getAlias()
getAlias in class KeyInfoStrategyCopyright © 2005–2018 Oracle Corporation. All rights reserved.