/** * Obtains the value of the {@link #PARAM_TYPE_PUBLIC_KEY public key parameter}, or * <code>null</code> if not set. */ public byte[] getPublicKey() { return (byte[])parameters.get(Integers.valueOf(PARAM_TYPE_PUBLIC_KEY)); }
/** * Obtains the value of the {@link #PARAM_TYPE_NONCE nonce parameter}, or <code>null</code> if * not set. */ public byte[] getNonce() { return (byte[])parameters.get(Integers.valueOf(PARAM_TYPE_NONCE)); }
/** * Obtains the value of the {@link #PARAM_TYPE_PERSONALISATION personalisation parameter}, or * <code>null</code> if not set. */ public byte[] getPersonalisation() { return (byte[])parameters.get(Integers.valueOf(PARAM_TYPE_PERSONALISATION)); }
/** * Obtains the value of the {@link #PARAM_TYPE_KEY_IDENTIFIER key identifier parameter}, or * <code>null</code> if not set. */ public byte[] getKeyIdentifier() { return (byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY_IDENTIFIER)); }
/** * Obtains the value of the {@link #PARAM_TYPE_KEY key parameter}, or <code>null</code> if not * set. */ public byte[] getKey() { return (byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY)); }
public void put(int index, BDS bds) { bdsState.put(Integers.valueOf(index), bds); } }
public BDS get(int index) { return bdsState.get(Integers.valueOf(index)); }
DefaultSecretKeyProvider() { Map keySizes = new HashMap(); keySizes.put(new ASN1ObjectIdentifier("1.2.840.113533.7.66.10"), Integers.valueOf(128)); keySizes.put(PKCSObjectIdentifiers.des_EDE3_CBC, Integers.valueOf(192)); keySizes.put(NISTObjectIdentifiers.id_aes128_CBC, Integers.valueOf(128)); keySizes.put(NISTObjectIdentifiers.id_aes192_CBC, Integers.valueOf(192)); keySizes.put(NISTObjectIdentifiers.id_aes256_CBC, Integers.valueOf(256)); keySizes.put(NTTObjectIdentifiers.id_camellia128_cbc, Integers.valueOf(128)); keySizes.put(NTTObjectIdentifiers.id_camellia192_cbc, Integers.valueOf(192)); keySizes.put(NTTObjectIdentifiers.id_camellia256_cbc, Integers.valueOf(256)); keySizes.put(CryptoProObjectIdentifiers.gostR28147_gcfb, Integers.valueOf(256)); KEY_SIZES = Collections.unmodifiableMap(keySizes); }
/** * Obtains the value of the {@link #PARAM_TYPE_PERSONALISATION personalisation parameter}, or * <code>null</code> if not set. */ public byte[] getPersonalisation() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_PERSONALISATION))); }
public static CRLReason lookup(int value) { Integer idx = Integers.valueOf(value); if (!table.containsKey(idx)) { table.put(idx, new CRLReason(value)); } return (CRLReason)table.get(idx); } }
/** * Obtains the value of the {@link #PARAM_TYPE_KEY_IDENTIFIER key identifier parameter}, or * <code>null</code> if not set. */ public byte[] getKeyIdentifier() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY_IDENTIFIER))); }
/** * Obtains the value of the {@link #PARAM_TYPE_NONCE nonce parameter}, or <code>null</code> if * not set. */ public byte[] getNonce() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_NONCE))); }
/** * Obtains the value of the {@link #PARAM_TYPE_PUBLIC_KEY public key parameter}, or * <code>null</code> if not set. */ public byte[] getPublicKey() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_PUBLIC_KEY))); }
/** * Obtains the value of the {@link #PARAM_TYPE_KEY key parameter}, or <code>null</code> if not * set. */ public byte[] getKey() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY))); }
public static String getRoleDescription(int i) { return (String)AuthorizationRole.get(Integers.valueOf(i)); }
protected static void addAdditionalStoresFromAltNames( X509Certificate cert, ExtendedPKIXParameters pkixParams) throws CertificateParsingException { // if in the IssuerAltName extension an URI // is given, add an additional X.509 store if (cert.getIssuerAlternativeNames() != null) { Iterator it = cert.getIssuerAlternativeNames().iterator(); while (it.hasNext()) { // look for URI List list = (List)it.next(); if (list.get(0).equals(Integers.valueOf(GeneralName.uniformResourceIdentifier))) { // found String temp = (String)list.get(1); CertPathValidatorUtilities.addAdditionalStoreFromLocation(temp, pkixParams); } } } }
private Message getPendingMessage() throws IOException { DTLSReassembler next = (DTLSReassembler)currentInboundFlight.get(Integers.valueOf(next_receive_seq)); if (next != null) { byte[] body = next.getBodyIfComplete(); if (body != null) { previousInboundFlight = null; return updateHandshakeMessagesDigest(new Message(next_receive_seq++, next.getMsgType(), body)); } } return null; }
static AlgorithmParameterSpec extractGcmSpec(ASN1Primitive spec) throws InvalidParameterSpecException { try { GCMParameters gcmParams = GCMParameters.getInstance(spec); Constructor constructor = gcmSpecClass.getConstructor(new Class[]{Integer.TYPE, byte[].class}); return (AlgorithmParameterSpec)constructor.newInstance(new Object[] { Integers.valueOf(gcmParams.getIcvLen() * 8), gcmParams.getNonce() }); } catch (NoSuchMethodException e) { throw new InvalidParameterSpecException("No constructor found!"); // should never happen } catch (Exception e) { throw new InvalidParameterSpecException("Construction failed: " + e.getMessage()); // should never happen } }
private Message getPendingMessage() throws IOException { DTLSReassembler next = (DTLSReassembler)currentInboundFlight.get(Integers.valueOf(next_receive_seq)); if (next != null) { byte[] body = next.getBodyIfComplete(); if (body != null) { previousInboundFlight = null; return updateHandshakeMessagesDigest(new Message(next_receive_seq++, next.getMsgType(), body)); } } return null; }