Class SecurityContext


  • public class SecurityContext
    extends Object
    This class represents the security context for signing/verification and encryption/decryption etc.
    • Constructor Detail

      • SecurityContext

        public SecurityContext()
    • Method Detail

      • getSigningKey

        public Key getSigningKey()
        Returns the signing key.
        Returns:
        the signing key.
      • setSigningKey

        public void setSigningKey​(Key signingKey)
        Sets the signing key
        Parameters:
        signingKey - the signing key
      • getVerificationKey

        public Key getVerificationKey()
        Returns the signature verification key.
        Returns:
        the signature verification key.
      • setVerificationKey

        public void setVerificationKey​(Key verificationKey)
        Sets the signature verification key
        Parameters:
        verificationKey - signature verification key
      • getEncryptionKey

        public Key getEncryptionKey()
        Returns the encryption key
        Returns:
        the encryption key
      • setEncryptionKey

        public void setEncryptionKey​(Key encryptionKey)
      • getDecryptionKey

        public Key getDecryptionKey()
        Returns the decryption key. return the decryption key.
      • setDecryptionKey

        public void setDecryptionKey​(Key decryptionKey)
        Sets the decryption key
        Parameters:
        decryptionKey - the decryption key
      • getKeyType

        public String getKeyType()
        Returns the key type. The possible types are SYMMETRIC_KEY or ASYMMETRIC_KEY.
        Returns:
        the key type.
      • setKeyType

        public void setKeyType​(String keyType)
        Sets the key type.
        Parameters:
        keyType - the key type.
      • getSigningCertAlias

        public String getSigningCertAlias()
        Return the signing certificate alias
        Returns:
        the signing certificate alias
      • setSigningCertAlias

        public void setSigningCertAlias​(String alias)
        Sets the signing certificate alias.
        Parameters:
        alias - the signature certificate alias.
      • getVerificationCertAlias

        public String getVerificationCertAlias()
        Returns the signature verification certificate alias.
        Returns:
        the signature verification certificate alias.
      • setVerificationCertAlias

        public void setVerificationCertAlias​(String alias)
        Sets the signature certificate alias
        Parameters:
        alias - the signature certificate alias
      • getEncryptionKeyAlias

        public String getEncryptionKeyAlias()
        Returns the encryption key alias.
        Returns:
        the encryption key alias.
      • setEncryptionKeyAlias

        public void setEncryptionKeyAlias​(String alias)
        Sets the encryption key alias.
        Parameters:
        alias - the encryption key alias.
      • getDecryptionAlias

        public String getDecryptionAlias()
        Returns the certificate alias for the decryption.
        Returns:
        the decryption certificate alias.
      • setDecryptionAlias

        public void setDecryptionAlias​(String alias)
        Sets the certificate alias for the decryption.
        Parameters:
        alias - the certificate alias for the decryption.
      • getSigningRef

        public String getSigningRef()
        Returns the signing reference type.
        Returns:
        the signing reference type.
      • setSigningRef

        public void setSigningRef​(String signingRef)
        Sets the signing reference type.
        Parameters:
        signingRef - the signing reference type.