Spring Security SAML

org.springframework.security.saml.trust
Class AllowAllSignatureTrustEngine

java.lang.Object
  extended by org.springframework.security.saml.trust.AllowAllSignatureTrustEngine
All Implemented Interfaces:
org.opensaml.xml.security.trust.TrustEngine<org.opensaml.xml.signature.Signature>, org.opensaml.xml.signature.SignatureTrustEngine

public class AllowAllSignatureTrustEngine
extends Object
implements org.opensaml.xml.signature.SignatureTrustEngine

Special type of trust engine which always trusts the credential and thus skips the verification.


Constructor Summary
AllowAllSignatureTrustEngine(org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver keyInfoResolver)
           
 
Method Summary
 org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver getKeyInfoResolver()
           
 boolean validate(byte[] signature, byte[] content, String algorithmURI, org.opensaml.xml.security.CriteriaSet trustBasisCriteria, org.opensaml.xml.security.credential.Credential candidateCredential)
           
 boolean validate(org.opensaml.xml.signature.Signature token, org.opensaml.xml.security.CriteriaSet trustBasisCriteria)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAllSignatureTrustEngine

public AllowAllSignatureTrustEngine(org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver keyInfoResolver)
Method Detail

getKeyInfoResolver

public org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver getKeyInfoResolver()
Specified by:
getKeyInfoResolver in interface org.opensaml.xml.signature.SignatureTrustEngine

validate

public boolean validate(byte[] signature,
                        byte[] content,
                        String algorithmURI,
                        org.opensaml.xml.security.CriteriaSet trustBasisCriteria,
                        org.opensaml.xml.security.credential.Credential candidateCredential)
                 throws org.opensaml.xml.security.SecurityException
Specified by:
validate in interface org.opensaml.xml.signature.SignatureTrustEngine
Throws:
org.opensaml.xml.security.SecurityException

validate

public boolean validate(org.opensaml.xml.signature.Signature token,
                        org.opensaml.xml.security.CriteriaSet trustBasisCriteria)
                 throws org.opensaml.xml.security.SecurityException
Specified by:
validate in interface org.opensaml.xml.security.trust.TrustEngine<org.opensaml.xml.signature.Signature>
Throws:
org.opensaml.xml.security.SecurityException

Spring Security SAML