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