public class SigningUtilTest extends Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
controlSignatureHMAC |
private byte[] |
controlSignatureRSA |
private org.opensaml.security.credential.Credential |
credAES |
private org.opensaml.security.credential.Credential |
credRSA |
private String |
data |
private String |
hmacJCAAlgorithm |
private KeyPair |
keyPairRSA |
private String |
rsaJCAAlgorithm |
private SecretKey |
secretKeyAES128 |
| Constructor and Description |
|---|
SigningUtilTest() |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
getControlSignature(byte[] data,
PrivateKey privateKey,
String algorithm) |
private byte[] |
getControlSignature(byte[] data,
SecretKey secretKey,
String algorithm) |
protected void |
setUp() |
void |
testSigningWithHMAC() |
void |
testSigningWithPrivateKey() |
void |
testVerificationWithHMAC() |
void |
testVerificationWithPublicKey() |
private SecretKey secretKeyAES128
private KeyPair keyPairRSA
private org.opensaml.security.credential.Credential credAES
private org.opensaml.security.credential.Credential credRSA
private String data
private byte[] controlSignatureRSA
private byte[] controlSignatureHMAC
private String rsaJCAAlgorithm
private String hmacJCAAlgorithm
public SigningUtilTest()
throws NoSuchAlgorithmException,
NoSuchProviderException
public void testSigningWithPrivateKey()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testSigningWithHMAC()
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic void testVerificationWithPublicKey()
throws org.opensaml.security.SecurityException,
NoSuchAlgorithmException,
NoSuchProviderException
org.opensaml.security.SecurityExceptionNoSuchAlgorithmExceptionNoSuchProviderExceptionpublic void testVerificationWithHMAC()
throws org.opensaml.security.SecurityException,
NoSuchAlgorithmException,
NoSuchProviderException
org.opensaml.security.SecurityExceptionNoSuchAlgorithmExceptionNoSuchProviderExceptionprivate byte[] getControlSignature(byte[] data,
SecretKey secretKey,
String algorithm)
throws NoSuchAlgorithmException,
InvalidKeyException
private byte[] getControlSignature(byte[] data,
PrivateKey privateKey,
String algorithm)
throws NoSuchAlgorithmException,
InvalidKeyException,
SignatureException
Copyright © 1999–2015. All rights reserved.