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

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

public class IssuerCertificateUtil
extends java.lang.Object


Constructor Summary
IssuerCertificateUtil()
           
 
Method Summary
static boolean checkSystemStoree(java.security.cert.X509Certificate signedCert, java.security.KeyStore trustStore, java.security.KeyStore systemStore)
          This method checks whether the certificate is present in the certificate store
static boolean doBlackListCheck(java.util.List[] blackList, java.security.cert.X509Certificate cert)
          Performs the black list check
static boolean doWhiteListCheck(java.util.List[] whiteList, java.security.cert.X509Certificate cert)
          Do a white list check
static java.lang.String getCNOfSubject(java.security.cert.X509Certificate cert)
          Retrieves the CN of the subject of the given Certificate
static java.util.List getDNOfIssuer(java.lang.String inString)
          Retrieves the DN Of Issuer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssuerCertificateUtil

public IssuerCertificateUtil()
Method Detail

checkSystemStoree

public static boolean checkSystemStoree(java.security.cert.X509Certificate signedCert,
                                        java.security.KeyStore trustStore,
                                        java.security.KeyStore systemStore)
                                 throws java.lang.Exception
This method checks whether the certificate is present in the certificate store

Throws:
java.lang.Exception

doBlackListCheck

public static boolean doBlackListCheck(java.util.List[] blackList,
                                       java.security.cert.X509Certificate cert)
                                throws RelyingPartyException
Performs the black list check

Parameters:
blackList - Array of Lists. One Array element contains the Issuer's cert DN
cert -
Returns:
Throws:
RelyingPartyException

doWhiteListCheck

public static boolean doWhiteListCheck(java.util.List[] whiteList,
                                       java.security.cert.X509Certificate cert)
                                throws RelyingPartyException
Do a white list check

Parameters:
whiteList - Array of Lists. One Array element contains the Issuer's cert DN
cert -
Returns:
Throws:
RelyingPartyException

getCNOfSubject

public static java.lang.String getCNOfSubject(java.security.cert.X509Certificate cert)
Retrieves the CN of the subject of the given Certificate

Parameters:
cert -
Returns:

getDNOfIssuer

public static java.util.List getDNOfIssuer(java.lang.String inString)
Retrieves the DN Of Issuer

Parameters:
inString -
Returns: