Class X509CertificateChain

java.lang.Object
uk.ac.starlink.auth.ssl.X509CertificateChain

public class X509CertificateChain extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • findPrivateKeyChain

      public static X509CertificateChain findPrivateKeyChain(Set<Object> publicCredentials)
    • certificateString

      public String certificateString()
    • genHashKey

      public static String genHashKey(X500Principal dn)
      Parameters:
      dn - DN to generate the hash key
      Returns:
      hash code corresponding to the CADC canonized version of the DN
    • setExpiryDate

      public void setExpiryDate(Date expiryDate)
      Parameters:
      expiryDate - the expiryDate to set
    • getExpiryDate

      public Date getExpiryDate()
      Returns:
      the expiryDate
    • setCsrString

      public void setCsrString(String csrString)
      Parameters:
      csrString - the csrString to set
    • getCsrString

      public String getCsrString()
      Returns:
      the csrString
    • getPrincipal

      public X500Principal getPrincipal()
    • setPrincipal

      public void setPrincipal(X500Principal principal)
    • getKey

      public PrivateKey getKey()
    • setKey

      public void setKey(PrivateKey key)
    • setChain

      public void setChain(X509Certificate[] chain)
    • setHashKey

      public void setHashKey(String hashKey)
      Parameters:
      hashKey - the hashKey to set
    • getHashKey

      public String getHashKey()
      Returns:
      the hashKey
    • getX500Principal

      public X500Principal getX500Principal()
    • getChain

      public X509Certificate[] getChain()
    • getPrivateKey

      public PrivateKey getPrivateKey()
    • isProxy

      public boolean isProxy()
    • getEndEntity

      public X509Certificate getEndEntity()