Class KeyType

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

    public class KeyType
    extends SdkEncodable
    Since:
    6.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • KeyType

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

      • getKeyType

        public String getKeyType()
      • getEcCurves

        public String[] getEcCurves()
      • encode0

        protected void encode0​(org.xipki.util.cbor.CborEncoder encoder)
                        throws IOException,
                               org.xipki.util.exception.EncodeException
        Specified by:
        encode0 in class SdkEncodable
        Throws:
        IOException
        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