1
1
/*
2
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -61,12 +61,12 @@ public interface AlgorithmConstraints {
61
61
* parameters
62
62
*
63
63
* @return true if the algorithm is permitted and can be used for all
64
- * of the specified cryptographic primitives
64
+ * the specified cryptographic primitives
65
65
*
66
66
* @throws IllegalArgumentException if primitives or algorithm is null
67
67
* or empty
68
68
*/
69
- public boolean permits (Set <CryptoPrimitive > primitives ,
69
+ boolean permits (Set <CryptoPrimitive > primitives ,
70
70
String algorithm , AlgorithmParameters parameters );
71
71
72
72
/**
@@ -78,13 +78,13 @@ public boolean permits(Set<CryptoPrimitive> primitives,
78
78
* @param primitives a set of cryptographic primitives
79
79
* @param key the key
80
80
*
81
- * @return true if the key can be used for all of the specified
81
+ * @return true if the key can be used for all the specified
82
82
* cryptographic primitives
83
83
*
84
84
* @throws IllegalArgumentException if primitives is null or empty,
85
85
* or the key is null
86
86
*/
87
- public boolean permits (Set <CryptoPrimitive > primitives , Key key );
87
+ boolean permits (Set <CryptoPrimitive > primitives , Key key );
88
88
89
89
/**
90
90
* Determines whether an algorithm and the corresponding key are granted
@@ -96,13 +96,13 @@ public boolean permits(Set<CryptoPrimitive> primitives,
96
96
* @param parameters the algorithm parameters, or null if no additional
97
97
* parameters
98
98
*
99
- * @return true if the key and the algorithm can be used for all of the
99
+ * @return true if the key and the algorithm can be used for all the
100
100
* specified cryptographic primitives
101
101
*
102
102
* @throws IllegalArgumentException if primitives or algorithm is null
103
103
* or empty, or the key is null
104
104
*/
105
- public boolean permits (Set <CryptoPrimitive > primitives ,
105
+ boolean permits (Set <CryptoPrimitive > primitives ,
106
106
String algorithm , Key key , AlgorithmParameters parameters );
107
107
108
108
}
0 commit comments