|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.jose.crypto.ECDSASigner
@ThreadSafe public class ECDSASigner
Elliptic Curve Digital Signature Algorithm (ECDSA) signer of
JWS objects. This class is thread-safe.
Supports the following JSON Web Algorithms (JWAs):
| Field Summary | |
|---|---|
static Set<JWSAlgorithm> |
SUPPORTED_ALGORITHMS
The supported JWS algorithms. |
| Constructor Summary | |
|---|---|
ECDSASigner(BigInteger privateKey)
Creates a new Elliptic Curve Digital Signature Algorithm (ECDSA) signer. |
|
| Method Summary | |
|---|---|
protected static com.nimbusds.jose.crypto.ECDSAParameters |
getECDSAParameters(JWSAlgorithm alg)
Gets the initial parameters for the specified ECDSA-based JSON Web Algorithm (JWA). |
BigInteger |
getPrivateKey()
Gets the private key ('d' parameter). |
Base64URL |
sign(ReadOnlyJWSHeader header,
byte[] signableContent)
Signs the specified signable
content of a JWS object. |
Set<JWSAlgorithm> |
supportedAlgorithms()
Returns the names of the supported JWS algorithms. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.nimbusds.jose.JWSAlgorithmProvider |
|---|
supportedAlgorithms |
| Field Detail |
|---|
public static final Set<JWSAlgorithm> SUPPORTED_ALGORITHMS
| Constructor Detail |
|---|
public ECDSASigner(BigInteger privateKey)
privateKey - The private key ('d' parameter). Must not be
null.| Method Detail |
|---|
public BigInteger getPrivateKey()
public Base64URL sign(ReadOnlyJWSHeader header,
byte[] signableContent)
throws JOSEException
JWSSignersignable
content of a JWS object.
sign in interface JWSSignerheader - The JSON Web Signature (JWS) header. Must
specify a supported JWS algorithm and must not
be null.signableContent - The content to sign. Must not be null.
JOSEException - If the JWS algorithm is not supported or if
signing failed for some other reason.
protected static com.nimbusds.jose.crypto.ECDSAParameters getECDSAParameters(JWSAlgorithm alg)
throws JOSEException
alg - The JSON Web Algorithm (JWA). Must be supported and not
null.
JOSEException - If the algorithm is not supported.public Set<JWSAlgorithm> supportedAlgorithms()
JWSAlgorithmProvideralg JWS header parameter.
supportedAlgorithms in interface JWSAlgorithmProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||