Class KeyType

  • All Implemented Interfaces:
    org.xipki.util.cbor.CborEncodable

    public class KeyType
    extends java.lang.Object
    implements org.xipki.util.cbor.CborEncodable
    Since:
    6.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyType​(java.lang.String keyType, java.lang.String[] ecCurves)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static KeyType decode​(org.xipki.util.cbor.CborDecoder decoder)  
      static KeyType[] decodeArray​(org.xipki.util.cbor.CborDecoder decoder)  
      void encode​(org.xipki.util.cbor.CborEncoder encoder)  
      java.lang.String[] getEcCurves()  
      java.lang.String getKeyType()  
      • Methods inherited from class java.lang.Object

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

      • KeyType

        public KeyType​(java.lang.String keyType,
                       java.lang.String[] ecCurves)
    • Method Detail

      • getKeyType

        public java.lang.String getKeyType()
      • getEcCurves

        public java.lang.String[] getEcCurves()
      • encode

        public void encode​(org.xipki.util.cbor.CborEncoder encoder)
                    throws org.xipki.util.exception.EncodeException
        Specified by:
        encode in interface org.xipki.util.cbor.CborEncodable
        Throws:
        org.xipki.util.exception.EncodeException
      • decode

        public static KeyType decode​(org.xipki.util.cbor.CborDecoder decoder)
                              throws org.xipki.util.exception.DecodeException
        Throws:
        org.xipki.util.exception.DecodeException
      • decodeArray

        public static KeyType[] decodeArray​(org.xipki.util.cbor.CborDecoder decoder)
                                     throws org.xipki.util.exception.DecodeException
        Throws:
        org.xipki.util.exception.DecodeException