|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface STRParser
This interface describes a pluggable way of extracting credentials from SecurityTokenReference elements. The implementations are used by various processors.
| Nested Class Summary | |
|---|---|
static class |
STRParser.REFERENCE_TYPE
ISSUER_SERIAL - A certificate (chain) is located by the issuer name and serial number of the (root) cert THUMBPRINT_SHA1 - A certificate (chain) is located by the SHA1 thumbprint of the (root) cert KEY_IDENTIFIER - A certificate (chain) is located via a Key Identifier Element DIRECT_REF - A certificate (chain) is located directly via an Id to another security token Note that a Thumbprint reference is also a KeyIdentifier, but takes precedence over it. |
| Method Summary | |
|---|---|
java.security.cert.X509Certificate[] |
getCertificates()
Get the X509Certificates associated with this SecurityTokenReference |
STRParser.REFERENCE_TYPE |
getCertificatesReferenceType()
Get how the certificates were referenced |
java.security.Principal |
getPrincipal()
Get the Principal associated with this SecurityTokenReference |
java.security.PublicKey |
getPublicKey()
Get the PublicKey associated with this SecurityTokenReference |
byte[] |
getSecretKey()
Get the Secret Key associated with this SecurityTokenReference |
boolean |
isTrustedCredential()
Get whether the returned credential is already trusted or not. |
void |
parseSecurityTokenReference(org.w3c.dom.Element strElement,
RequestData data,
WSDocInfo wsDocInfo,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Parse a SecurityTokenReference element and extract credentials. |
| Method Detail |
|---|
void parseSecurityTokenReference(org.w3c.dom.Element strElement,
RequestData data,
WSDocInfo wsDocInfo,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws WSSecurityException
strElement - The SecurityTokenReference elementdata - the RequestData associated with the requestwsDocInfo - The WSDocInfo object to access previous processing resultsparameters - A set of implementation-specific parameters
WSSecurityExceptionjava.security.cert.X509Certificate[] getCertificates()
java.security.Principal getPrincipal()
java.security.PublicKey getPublicKey()
byte[] getSecretKey()
boolean isTrustedCredential()
STRParser.REFERENCE_TYPE getCertificatesReferenceType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||