Class EncryptorFactory


  • @Component
    public class EncryptorFactory
    extends java.lang.Object
    Class responsible for building encryptors.
    Author:
    Petr Dvorak, petr@wultra.com
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.getlime.security.powerauth.rest.api.base.encryption.PowerAuthNonPersonalizedEncryptor buildNonPersonalizedEncryptor​(io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.entity.NonPersonalizedEncryptedPayloadModel> object)
      Return a new instance of a non-personalized encryptor.
      io.getlime.security.powerauth.rest.api.base.encryption.PowerAuthNonPersonalizedEncryptor buildNonPersonalizedEncryptor​(java.lang.String applicationKeyBase64, java.lang.String sessionIndexBase64, java.lang.String ephemeralPublicKeyBase64)
      Return a new instance of a non-personalized encryptor.
      void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)  
      • Methods inherited from class java.lang.Object

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

      • EncryptorFactory

        public EncryptorFactory()
    • Method Detail

      • setPowerAuthClient

        @Autowired
        public void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
      • buildNonPersonalizedEncryptor

        public io.getlime.security.powerauth.rest.api.base.encryption.PowerAuthNonPersonalizedEncryptor buildNonPersonalizedEncryptor​(io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.entity.NonPersonalizedEncryptedPayloadModel> object)
        Return a new instance of a non-personalized encryptor.
        Parameters:
        object - Request object to be used to initialize a new encryptor.
        Returns:
        New instance of a non-personalized encryptor.
      • buildNonPersonalizedEncryptor

        public io.getlime.security.powerauth.rest.api.base.encryption.PowerAuthNonPersonalizedEncryptor buildNonPersonalizedEncryptor​(java.lang.String applicationKeyBase64,
                                                                                                                                      java.lang.String sessionIndexBase64,
                                                                                                                                      java.lang.String ephemeralPublicKeyBase64)
        Return a new instance of a non-personalized encryptor.
        Parameters:
        applicationKeyBase64 - Application key associated with an application master key used for encryption.
        sessionIndexBase64 - Session index.
        ephemeralPublicKeyBase64 - Ephemeral public key.
        Returns:
        New instance of a non-personalized encryptor.