Package org.xipki.ca.sdk
Class KeyType
- java.lang.Object
-
- org.xipki.ca.sdk.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 KeyTypedecode(org.xipki.util.cbor.CborDecoder decoder)static KeyType[]decodeArray(org.xipki.util.cbor.CborDecoder decoder)voidencode(org.xipki.util.cbor.CborEncoder encoder)java.lang.String[]getEcCurves()java.lang.StringgetKeyType()
-
-
-
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:
encodein interfaceorg.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
-
-