public interface STRParser
Modifier and Type | Interface and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 parametersWSSecurityException
X509Certificate[] getCertificates()
Principal getPrincipal()
PublicKey getPublicKey()
byte[] getSecretKey()
boolean isTrustedCredential()
STRParser.REFERENCE_TYPE getCertificatesReferenceType()
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.