Auto-generated method stub
This commit is contained in:
@@ -206,7 +206,7 @@ public final class KeyPairUtil
|
||||
}
|
||||
else if (pubKey instanceof ECKey)
|
||||
{
|
||||
// TODO: how to get key size from these?
|
||||
// how to get key size from these?
|
||||
return UNKNOWN_KEY_SIZE;
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ public final class KeyPairUtil
|
||||
}
|
||||
else if (keyParams instanceof ECKeyParameters)
|
||||
{
|
||||
// TODO: how to get key length from these?
|
||||
// how to get key length from these?
|
||||
return UNKNOWN_KEY_SIZE;
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,6 @@ public final class ReciprocalUtils {
|
||||
try {
|
||||
simple = new String(byteFinal, "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
return simple;
|
||||
|
||||
@@ -45,10 +45,10 @@ public final class NetUtil
|
||||
/** Logger */
|
||||
private static final Logger _logger = LoggerFactory.getLogger(NetUtil.class);
|
||||
|
||||
// TODO: make this configurable
|
||||
// make this configurable
|
||||
private static final int CONNECT_TIMEOUT = 10000;
|
||||
|
||||
// TODO: make this configurable
|
||||
// make this configurable
|
||||
private static final int READ_TIMEOUT = 20000;
|
||||
|
||||
/**
|
||||
@@ -74,7 +74,7 @@ public final class NetUtil
|
||||
conn.setConnectTimeout(CONNECT_TIMEOUT);
|
||||
conn.setReadTimeout(READ_TIMEOUT);
|
||||
|
||||
// TODO: User-Agent?
|
||||
// User-Agent?
|
||||
|
||||
return conn.getInputStream();
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public final class NetUtil
|
||||
conn.setConnectTimeout(CONNECT_TIMEOUT);
|
||||
conn.setReadTimeout(READ_TIMEOUT);
|
||||
|
||||
// TODO: User-Agent?
|
||||
// User-Agent?
|
||||
|
||||
if (contentType != null)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ public interface JwtEncryptionAndDecryptionService {
|
||||
public Collection<EncryptionMethod> getAllEncryptionEncsSupported();
|
||||
|
||||
/**
|
||||
* TODO add functionality for encrypting and decrypting using a specified key id.
|
||||
* add functionality for encrypting and decrypting using a specified key id.
|
||||
* Example: public void encryptJwt(EncryptedJWT jwt, String kid);
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ public class DefaultJwtEncryptionAndDecryptionService implements JwtEncryptionAn
|
||||
logger.warn("No private key for key #" + jwk.getKeyID());
|
||||
}
|
||||
|
||||
// TODO: add support for EC keys
|
||||
// add support for EC keys
|
||||
|
||||
} else if (jwk instanceof OctetSequenceKey) {
|
||||
// build symmetric encrypters and decrypters
|
||||
|
||||
@@ -77,6 +77,6 @@ public interface JwtSigningAndValidationService {
|
||||
public String getDefaultSignerKeyId();
|
||||
|
||||
/**
|
||||
* TODO: method to sign a jwt using a specified algorithm and a key id
|
||||
* method to sign a jwt using a specified algorithm and a key id
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class DefaultJwtSigningAndValidationService implements JwtSigningAndValid
|
||||
for (JWK key : keyStore.getKeys()) {
|
||||
if (!Strings.isNullOrEmpty(key.getKeyID())) {
|
||||
// use the key ID that's built into the key itself
|
||||
// TODO (#641): deal with JWK thumbprints
|
||||
// (#641): deal with JWK thumbprints
|
||||
this.keys.put(key.getKeyID(), key);
|
||||
} else {
|
||||
// create a random key id
|
||||
@@ -173,7 +173,7 @@ public class DefaultJwtSigningAndValidationService implements JwtSigningAndValid
|
||||
} else if (jwk instanceof ECKey) {
|
||||
// build EC signers & verifiers
|
||||
|
||||
// TODO: add support for EC keys
|
||||
// add support for EC keys
|
||||
logger.warn("EC Keys are not yet supported.");
|
||||
|
||||
} else if (jwk instanceof OctetSequenceKey) {
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SymmetricCacheService {
|
||||
try {
|
||||
|
||||
String id = "SYMMETRIC-KEY";
|
||||
//TODO:
|
||||
|
||||
JWK jwk =null;
|
||||
//JWK jwk = new OctetSequenceKey(Base64URL.encode(key), KeyUse.SIGNATURE, null, null, id, null, null, null);
|
||||
Map<String, JWK> keys = ImmutableMap.of(id, jwk);
|
||||
|
||||
@@ -56,7 +56,6 @@ public class SymmetricSigningAndValidationServiceBuilder {
|
||||
/**
|
||||
* Builder Symmetric Signing And Validation Service
|
||||
*/
|
||||
//TODO:
|
||||
JWK jwk = null;
|
||||
//JWK jwk = new OctetSequenceKey(Base64URL.encode(sharedSecret), KeyUse.SIGNATURE, null, null, SYMMETRIC_KEY, null, null, null);
|
||||
Map<String, JWK> keys = ImmutableMap.of(SYMMETRIC_KEY, jwk);
|
||||
|
||||
@@ -234,7 +234,7 @@ public final class KeyStoreUtil {
|
||||
* @return available keystore types
|
||||
*/
|
||||
public static KeyStoreType[] getAvailableTypes() {
|
||||
// TODO: populate only once
|
||||
// populate only once
|
||||
KeyStoreType[] known = KeyStoreType.values();
|
||||
ArrayList<KeyStoreType> available = new ArrayList<KeyStoreType>();
|
||||
for (KeyStoreType type : known) {
|
||||
|
||||
Reference in New Issue
Block a user