Class ECEncryptionConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.nimbusds.jose.JWEDecrypter buildDecrypter()
      Build the appropriate decrypter.
      protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
      Build the appropriate encrypter.
      java.security.interfaces.ECPrivateKey getPrivateKey()  
      java.security.interfaces.ECPublicKey getPublicKey()  
      protected void internalInit​(boolean forceReinit)  
      void setKeyPair​(java.security.KeyPair keyPair)  
      void setKeysFromJwk​(java.lang.String json)  
      void setPrivateKey​(java.security.interfaces.ECPrivateKey privateKey)  
      void setPublicKey​(java.security.interfaces.ECPublicKey publicKey)  
      boolean supports​(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
      Whether this encryption configuration supports this algorithm and encryption method.
      java.lang.String toString()  
      • Methods inherited from class org.pac4j.core.util.InitializableObject

        afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ECEncryptionConfiguration

        public ECEncryptionConfiguration()
      • ECEncryptionConfiguration

        public ECEncryptionConfiguration​(java.security.KeyPair keyPair)
      • ECEncryptionConfiguration

        public ECEncryptionConfiguration​(java.security.KeyPair keyPair,
                                         com.nimbusds.jose.JWEAlgorithm algorithm,
                                         com.nimbusds.jose.EncryptionMethod method)
    • Method Detail

      • supports

        public boolean supports​(com.nimbusds.jose.JWEAlgorithm algorithm,
                                com.nimbusds.jose.EncryptionMethod method)
        Description copied from interface: EncryptionConfiguration
        Whether this encryption configuration supports this algorithm and encryption method.
        Parameters:
        algorithm - the encryption algorithm
        method - the encryption method
        Returns:
        whether this encryption configuration supports this algorithm and encryption method
      • internalInit

        protected void internalInit​(boolean forceReinit)
        Specified by:
        internalInit in class org.pac4j.core.util.InitializableObject
      • setKeyPair

        public void setKeyPair​(java.security.KeyPair keyPair)
      • getPublicKey

        public java.security.interfaces.ECPublicKey getPublicKey()
      • setPublicKey

        public void setPublicKey​(java.security.interfaces.ECPublicKey publicKey)
      • getPrivateKey

        public java.security.interfaces.ECPrivateKey getPrivateKey()
      • setPrivateKey

        public void setPrivateKey​(java.security.interfaces.ECPrivateKey privateKey)
      • setKeysFromJwk

        public void setKeysFromJwk​(java.lang.String json)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object