Class DosetaKeyRepository

java.lang.Object
org.jboss.resteasy.security.doseta.DosetaKeyRepository
All Implemented Interfaces:
KeyRepository

public class DosetaKeyRepository extends Object implements KeyRepository
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

    • DosetaKeyRepository

      public DosetaKeyRepository()
  • Method Details

    • start

      public void start()
    • getDefaultPrivateSelector

      public String getDefaultPrivateSelector()
      Description copied from interface: KeyRepository
      What should be the default selector to use when creating signature header
      Specified by:
      getDefaultPrivateSelector in interface KeyRepository
      Returns:
      null if none
    • getKeyStorePath

      public String getKeyStorePath()
    • setKeyStorePath

      public void setKeyStorePath(String keyStorePath)
    • getKeyStoreFile

      public String getKeyStoreFile()
    • setKeyStoreFile

      public void setKeyStoreFile(String keyStoreFile)
    • getKeyStorePassword

      public String getKeyStorePassword()
    • setKeyStorePassword

      public void setKeyStorePassword(String keyStorePassword)
    • getKeyStore

      public KeyStoreKeyRepository getKeyStore()
    • setKeyStore

      public void setKeyStore(KeyStoreKeyRepository keyStore)
    • getDefaultPrivateDomain

      public String getDefaultPrivateDomain()
      Description copied from interface: KeyRepository
      What should be the default domain to use when creating signature header
      Specified by:
      getDefaultPrivateDomain in interface KeyRepository
      Returns:
      null if none
    • setDefaultPrivateDomain

      public void setDefaultPrivateDomain(String defaultPrivateDomain)
    • isUseDns

      public boolean isUseDns()
    • setUseDns

      public void setUseDns(boolean useDns)
    • isUserPrincipalAsPrivateSelector

      public boolean isUserPrincipalAsPrivateSelector()
    • setUserPrincipalAsPrivateSelector

      public void setUserPrincipalAsPrivateSelector(boolean userPrincipalAsPrivateSelector)
    • getDnsUri

      public String getDnsUri()
    • setDnsUri

      public void setDnsUri(String dnsUri)
    • getCacheTimeout

      public long getCacheTimeout()
    • setCacheTimeout

      public void setCacheTimeout(long cacheTimeout)
    • addPrivate

      protected void addPrivate(String alias, PrivateKey key)
    • addPublic

      protected void addPublic(String alias, PublicKey key)
    • getPrivateCache

      protected PrivateKey getPrivateCache(String alias)
    • getPublicCache

      protected PublicKey getPublicCache(String alias)
    • getAlias

      public String getAlias(DKIMSignature header)
    • findPrivateKey

      public PrivateKey findPrivateKey(DKIMSignature header)
      Specified by:
      findPrivateKey in interface KeyRepository
    • findPublicKey

      public PublicKey findPublicKey(DKIMSignature header)
      Specified by:
      findPublicKey in interface KeyRepository
    • findFromDns

      protected PublicKey findFromDns(String alias)