|
||||||||||
| 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 | |
|---|---|
X509Certificate[] |
getCertificates()
Get the X509Certificates associated with this SecurityTokenReference |
STRParser.REFERENCE_TYPE |
getCertificatesReferenceType()
Get how the certificates were referenced |
Principal |
getPrincipal()
Get the Principal associated with this SecurityTokenReference |
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(Element strElement,
RequestData data,
WSDocInfo wsDocInfo,
Map<String,Object> parameters)
Parse a SecurityTokenReference element and extract credentials. |
| Method Detail |
|---|
void parseSecurityTokenReference(Element strElement,
RequestData data,
WSDocInfo wsDocInfo,
Map<String,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
WSSecurityExceptionX509Certificate[] getCertificates()
Principal getPrincipal()
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 | |||||||||