Class SignatureTypeConverter

java.lang.Object
io.getlime.security.powerauth.rest.api.spring.converter.v3.SignatureTypeConverter

public class SignatureTypeConverter
extends java.lang.Object
Helper class to convert from and to SignatureType class.
Author:
Petr Dvorak, petr@wultra.com
  • Constructor Summary

    Constructors
    Constructor Description
    SignatureTypeConverter()  
  • Method Summary

    Modifier and Type Method Description
    com.wultra.security.powerauth.client.v3.SignatureType convertFrom​(io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes powerAuthSignatureTypes)
    Convert SignatureType from PowerAuthSignatureTypes.
    com.wultra.security.powerauth.client.v3.SignatureType convertFrom​(java.lang.String signatureTypeString)
    Convert SignatureType from a String value.

    Methods inherited from class java.lang.Object

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

    • SignatureTypeConverter

      public SignatureTypeConverter()
  • Method Details

    • convertFrom

      public com.wultra.security.powerauth.client.v3.SignatureType convertFrom​(java.lang.String signatureTypeString)
      Convert SignatureType from a String value.
      Parameters:
      signatureTypeString - String value representing signature type.
      Returns:
      Signature type.
    • convertFrom

      public com.wultra.security.powerauth.client.v3.SignatureType convertFrom​(io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes powerAuthSignatureTypes)
      Convert SignatureType from PowerAuthSignatureTypes.
      Parameters:
      powerAuthSignatureTypes - Signature type from crypto representation.
      Returns:
      Signature type.