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.String
BASE_ALGORITHM_NAME
private static org.slf4j.Logger
log
static java.util.Map<java.lang.String,ECDSACurve>
NIST_CURVES
static 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 int
fieldSizeFromKey(java.security.interfaces.ECKey ecPublicKey)
(package private) static boolean
isECKeyWithFieldSize(java.security.Key key, int fieldSize)
(package private) static java.security.PublicKey
readPubKeyFromBuffer(Buffer<?> buf, java.lang.String variation)
(package private) static void
writePubKeyContentsIntoBuffer(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)
-
-