Package org.apache.wss4j.dom.str
Class STRParserResult
- java.lang.Object
- 
- org.apache.wss4j.dom.str.STRParserResult
 
- 
 public class STRParserResult extends Object This class holds the results from parsing a SecurityTokenReference Element by a STRParser implementation.
- 
- 
Constructor SummaryConstructors Constructor Description STRParserResult()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate[]getCertificates()Get the X509Certificates associated with this SecurityTokenReferenceSTRParser.REFERENCE_TYPEgetCertificatesReferenceType()Get how the certificates were referencedPrincipalgetPrincipal()Get the Principal associated with this SecurityTokenReferencePublicKeygetPublicKey()Get the PublicKey associated with this SecurityTokenReferencebyte[]getSecretKey()Get the Secret Key associated with this SecurityTokenReferencebooleanisTrustedCredential()Get whether the returned credential is already trusted or not.voidsetCerts(X509Certificate[] certs)voidsetPrincipal(Principal principal)voidsetPublicKey(PublicKey publicKey)voidsetReferenceType(STRParser.REFERENCE_TYPE referenceType)voidsetSecretKey(byte[] secretKey)voidsetTrustedCredential(boolean trustedCredential)
 
- 
- 
- 
Method Detail- 
getCertificatespublic X509Certificate[] getCertificates() Get the X509Certificates associated with this SecurityTokenReference- Returns:
- the X509Certificates associated with this SecurityTokenReference
 
 - 
getPrincipalpublic Principal getPrincipal() Get the Principal associated with this SecurityTokenReference- Returns:
- the Principal associated with this SecurityTokenReference
 
 - 
getPublicKeypublic PublicKey getPublicKey() Get the PublicKey associated with this SecurityTokenReference- Returns:
- the PublicKey associated with this SecurityTokenReference
 
 - 
getSecretKeypublic byte[] getSecretKey() Get the Secret Key associated with this SecurityTokenReference- Returns:
- the Secret Key associated with this SecurityTokenReference
 
 - 
isTrustedCredentialpublic boolean isTrustedCredential() Get whether the returned credential is already trusted or not. This is currently applicable in the case of a credential extracted from a trusted HOK SAML Assertion, and a BinarySecurityToken that has been processed by a Validator. In these cases, the SignatureProcessor does not need to verify trust on the credential.- Returns:
- true if trust has already been verified on the returned Credential
 
 - 
getCertificatesReferenceTypepublic STRParser.REFERENCE_TYPE getCertificatesReferenceType() Get how the certificates were referenced- Returns:
- how the certificates were referenced
 
 - 
setCertspublic void setCerts(X509Certificate[] certs) 
 - 
setSecretKeypublic void setSecretKey(byte[] secretKey) 
 - 
setPublicKeypublic void setPublicKey(PublicKey publicKey) 
 - 
setPrincipalpublic void setPrincipal(Principal principal) 
 - 
setTrustedCredentialpublic void setTrustedCredential(boolean trustedCredential) 
 - 
setReferenceTypepublic void setReferenceType(STRParser.REFERENCE_TYPE referenceType) 
 
- 
 
-