|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.internet2.middleware.security.XmlSecToolCommandLineArguments.Blacklist
public class XmlSecToolCommandLineArguments.Blacklist
A blacklist of digest and signature algorithms we should not accept during signature verification.
| Field Summary | |
|---|---|
private Set<String> |
digestBlacklist
Ordered set of blacklisted digest algorithm URIs. |
private Set<String> |
signatureBlacklist
Ordered set of blacklisted signature algorithm URIs. |
| Constructor Summary | |
|---|---|
XmlSecToolCommandLineArguments.Blacklist()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addDigest(XmlSecToolCommandLineArguments.DigestChoice digestChoice)
Blacklist the digest and signature algorithms associated with a XmlSecToolCommandLineArguments.DigestChoice. |
private void |
addDigestAlgorithm(String uri)
Blacklist an individual digest algorithm. |
private void |
addSignatureAlgorithm(String uri)
Blacklist an individual signature algorithm. |
void |
clear()
Empties the digest and signature blacklists. |
Collection<String> |
getDigestBlacklist()
Returns an unmodifiable view on the set of blacklisted digest algorithms. |
Collection<String> |
getSignatureBlacklist()
Returns an unmodifiable view on the set of blacklisted signature algorithms. |
boolean |
isBlacklistedDigest(String alg)
Returns true if the indicated algorithm URI is blacklisted for
use as a digest algorithm. |
boolean |
isBlacklistedSignature(String alg)
Returns true if the indicated algorithm URI is blacklisted for
use as a signature algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Set<String> digestBlacklist
private final Set<String> signatureBlacklist
| Constructor Detail |
|---|
public XmlSecToolCommandLineArguments.Blacklist()
| Method Detail |
|---|
private void addDigestAlgorithm(String uri)
uri - algorithm URI to blacklistprivate void addSignatureAlgorithm(String uri)
uri - algorithm URI to blacklistpublic void addDigest(XmlSecToolCommandLineArguments.DigestChoice digestChoice)
XmlSecToolCommandLineArguments.DigestChoice.
digestChoice - XmlSecToolCommandLineArguments.DigestChoice to add to blacklistpublic boolean isBlacklistedDigest(String alg)
true if the indicated algorithm URI is blacklisted for
use as a digest algorithm.
alg - digest algorithm URI to check
true if the algorithm is blacklistedpublic boolean isBlacklistedSignature(String alg)
true if the indicated algorithm URI is blacklisted for
use as a signature algorithm.
alg - signature algorithm URI to check
true if the algorithm is blacklistedpublic Collection<String> getDigestBlacklist()
public Collection<String> getSignatureBlacklist()
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||