public class HandleSigner
extends java.lang.Object
Constructor and Description |
---|
HandleSigner() |
Modifier and Type | Method and 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) |
public static HandleSigner getInstance()
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)
public JsonWebSignature signClaims(HandleClaimsSet claims, java.security.PrivateKey privateKey) throws TrustException
TrustException
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
TrustException
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
TrustException
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
TrustException
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
TrustException
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
TrustException