Package net.schmizz.sshj.common
Class ECDSAVariationsAdapter
- java.lang.Object
-
- net.schmizz.sshj.common.ECDSAVariationsAdapter
-
class ECDSAVariationsAdapter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringBASE_ALGORITHM_NAMEprivate static org.slf4j.Loggerlogstatic java.util.Map<java.lang.String,ECDSACurve>NIST_CURVESstatic java.util.Map<java.lang.String,java.lang.String>SUPPORTED_CURVES
-
Constructor Summary
Constructors Constructor Description ECDSAVariationsAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intfieldSizeFromKey(java.security.interfaces.ECKey ecPublicKey)(package private) static booleanisECKeyWithFieldSize(java.security.Key key, int fieldSize)(package private) static java.security.PublicKeyreadPubKeyFromBuffer(Buffer<?> buf, java.lang.String variation)(package private) static voidwritePubKeyContentsIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)
-
-
-
Field Detail
-
BASE_ALGORITHM_NAME
private static final java.lang.String BASE_ALGORITHM_NAME
- See Also:
- Constant Field Values
-
log
private static final org.slf4j.Logger log
-
SUPPORTED_CURVES
public static final java.util.Map<java.lang.String,java.lang.String> SUPPORTED_CURVES
-
NIST_CURVES
public static final java.util.Map<java.lang.String,ECDSACurve> NIST_CURVES
-
-
Method Detail
-
readPubKeyFromBuffer
static java.security.PublicKey readPubKeyFromBuffer(Buffer<?> buf, java.lang.String variation) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
writePubKeyContentsIntoBuffer
static void writePubKeyContentsIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)
-
isECKeyWithFieldSize
static boolean isECKeyWithFieldSize(java.security.Key key, int fieldSize)
-
fieldSizeFromKey
private static int fieldSizeFromKey(java.security.interfaces.ECKey ecPublicKey)
-
-