Package net.handle.hdllib.trust
Class HandleSigner
java.lang.Object
net.handle.hdllib.trust.HandleSigner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePayload
(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, List<String> chain, long notBefore, long expiration) static HandleSigner
signClaims
(HandleClaimsSet claims, PrivateKey privateKey) signClaimsRemotely
(HandleClaimsSet claims, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase) signHandleValues
(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, PrivateKey privateKey, List<String> chain, long notBefore, long expiration) signHandleValuesRemotely
(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, List<String> chain, long notBefore, long expiration, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase) signPermissions
(ValueReference subject, PublicKey subjectPublicKey, List<Permission> permissions, ValueReference signer, PrivateKey privateKey, List<String> chain, long notBefore, long expiration) signPermissionsRemotely
(ValueReference subject, PublicKey subjectPublicKey, List<Permission> permissions, ValueReference signer, List<String> chain, long notBefore, long expiration, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase)
-
Constructor Details
-
HandleSigner
public HandleSigner()
-
-
Method Details
-
getInstance
-
createPayload
public HandleClaimsSet createPayload(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, List<String> chain, long notBefore, long expiration) -
signClaims
public JsonWebSignature signClaims(HandleClaimsSet claims, PrivateKey privateKey) throws TrustException - Throws:
TrustException
-
signClaimsRemotely
public JsonWebSignature signClaimsRemotely(HandleClaimsSet claims, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase) throws TrustException - Throws:
TrustException
-
signHandleValues
public JsonWebSignature signHandleValues(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, PrivateKey privateKey, List<String> chain, long notBefore, long expiration) throws TrustException - Throws:
TrustException
-
signHandleValuesRemotely
public JsonWebSignature signHandleValuesRemotely(String handleToSign, List<HandleValue> valuesToSign, ValueReference signer, List<String> chain, long notBefore, long expiration, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase) throws TrustException - Throws:
TrustException
-
signPermissions
public JsonWebSignature signPermissions(ValueReference subject, PublicKey subjectPublicKey, List<Permission> permissions, ValueReference signer, PrivateKey privateKey, List<String> chain, long notBefore, long expiration) throws TrustException - Throws:
TrustException
-
signPermissionsRemotely
public JsonWebSignature signPermissionsRemotely(ValueReference subject, PublicKey subjectPublicKey, List<Permission> permissions, ValueReference signer, List<String> chain, long notBefore, long expiration, String baseUri, String username, String password, String privateKeyId, String privateKeyPassphrase) throws TrustException - Throws:
TrustException
-