org.wso2.solutions.identity.relyingparty.saml
Class X509CredentialUtil

java.lang.Object
  extended by org.wso2.solutions.identity.relyingparty.saml.X509CredentialUtil

public class X509CredentialUtil
extends java.lang.Object

This class creates the X509CredentialImpl that is needed to verify the signature.


Field Summary
static java.math.BigInteger DEFAULT_EXPONENET
           
static java.security.KeyStore systemKeyStore
           
 
Constructor Summary
X509CredentialUtil()
           
 
Method Summary
static org.opensaml.xml.security.x509.X509Credential loadCredentialFromSignature(org.opensaml.xml.signature.Signature signature)
          Creates the certificate from the KeyInfo element.
static org.opensaml.xml.security.x509.X509Credential loadCredentialFromTrustStore(java.lang.String alias, java.security.KeyStore trustStore)
          Creates the X509Credential from the TrustStore certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemKeyStore

public static java.security.KeyStore systemKeyStore

DEFAULT_EXPONENET

public static java.math.BigInteger DEFAULT_EXPONENET
Constructor Detail

X509CredentialUtil

public X509CredentialUtil()
Method Detail

loadCredentialFromTrustStore

public static org.opensaml.xml.security.x509.X509Credential loadCredentialFromTrustStore(java.lang.String alias,
                                                                                         java.security.KeyStore trustStore)
                                                                                  throws RelyingPartyException
Creates the X509Credential from the TrustStore certificate.

Throws:
RelyingPartyException

loadCredentialFromSignature

public static org.opensaml.xml.security.x509.X509Credential loadCredentialFromSignature(org.opensaml.xml.signature.Signature signature)
                                                                                 throws RelyingPartyException
Creates the certificate from the KeyInfo element.

Throws:
RelyingPartyException