/** * Set the initialization vector. * * @param iv * The initialization vector. * @preconditions (initializationVector <> null) * @postconditions */ public void setInitializationVector(byte[] iv) { this.iv = Util.requireNonNull("iv", iv); }
/** * Set the other party's second X9.42 public key value. * * @param publicData2 * The other party's second X9.42 public key value. * @preconditions (publicData2 <> null) * @postconditions */ public void setPublicData2(byte[] publicData2) { this.publicData2 = Util.requireNonNull("publicData2", publicData2); }
/** * Set the data used as the input for the salt source. * * @param saltSourceData * The data used as the input for the salt source. * @preconditions (saltSourceData <> null) * @postconditions */ public void setSaltSourceData(byte[] saltSourceData) { this.saltSourceData = Util.requireNonNull("saltSourceData", saltSourceData); }
/** * Set the password to be used in the PBE key generation. * * @param password * The password to be used in the PBE key generation. * @preconditions (password <> null) * @postconditions */ public void setPassword(char[] password) { this.password = Util.requireNonNull("password", password); }
/** * Create a new InitializationVectorParameters object with the given * initialization vector. * * @param iv * The initialization vector. * @preconditions (initializationVector <> null) * @postconditions */ public IVParams(byte[] iv) { this.iv = Util.requireNonNull("iv", iv); }
/** * Set the client's random data. * * @param clientRandom * The client's random data. * @preconditions (clientRandom <> null) * @postconditions */ public void setClientRandom(byte[] clientRandom) { this.clientRandom = Util.requireNonNull("clientRandom", clientRandom); }
/** * Set the server's random data. * * @param serverRandom * The server's random data. * @preconditions (serverRandom <> null) * @postconditions */ public void setServerRandom(byte[] serverRandom) { this.serverRandom = Util.requireNonNull("serverRandom", serverRandom); }
/** * Create a new VersionParameters object with the given version. * * @param version * The version. * @preconditions * @postconditions */ public VersionParams(Version version) { this.version = Util.requireNonNull("version", version); }
/** * Set the key for the second EC private key value. * * @param privateData * The key for the second EC private key value. * @preconditions (privateData <> null) * @postconditions */ public void setPrivateData(PKCS11Object privateData) { this.privateData = Util.requireNonNull("privateData", privateData); }
/** * Set the key for the second X9.42 private key value. * * @param privateData * The key for the second X9.42 private key value. * @preconditions (privateData <> null) * @postconditions */ public void setPrivateData(PKCS11Object privateData) { this.privateData = Util.requireNonNull("privateData", privateData); }
/** * Set the salt to be used in the PBE key generation. * * @param salt * The salt to be used in the PBE key generation. * @preconditions (salt <> null) * @postconditions */ public void setSalt(char[] salt) { this.salt = Util.requireNonNull("salt", salt);; }
/** * Set the public value of the other party in the key agreement protocol. * * @param publicValue * The public value of the other party in the key agreement * protocol. * @preconditions (publicValue <> null) * @postconditions */ public void setPublicValue(byte[] publicValue) { this.publicValue = Util.requireNonNull("publicValue", publicValue); }
/** * Set the public key part of this key-pair. * * @param publicKey * The public key part of this key-pair. * @preconditions (publicKey <> null) * @postconditions */ public void setPublicKey(PublicKey publicKey) { this.publicKey = Util.requireNonNull("publicKey", publicKey); }
/** * Set the client's and server's random data information. * * @param randomInfo * The client's and server's random data information. * @preconditions (randomInfo <> null) * @postconditions */ public void setRandomInfo(SSL3RandomDataParams randomInfo) { this.randomInfo = Util.requireNonNull("randomInfo", randomInfo); }
/** * Set the other partie's public key value. * * @param publicData * The other partie's public key value. * @preconditions (publicData <> null) * @postconditions */ public void setPublicData(byte[] publicData) { this.publicData = Util.requireNonNull("publicData", publicData); }
/** * Set the CK_ATTRIBUTE of this Attribute. Only for internal use. * * @param ckAttribute * The new CK_ATTRIBUTE of this Attribute. * @preconditions (ckAttribute <> null) * @postconditions */ protected void setCkAttribute(CK_ATTRIBUTE ckAttribute) { this.ckAttribute = Util.requireNonNull("ckAttribute", ckAttribute); }
/** * Set the private key part of this key-pair. * * @param privateKey * he private key part of this key-pair. * @preconditions (privateKey <> null) * @postconditions */ public void setPrivateKey(PrivateKey privateKey) { this.privateKey = Util.requireNonNull("privateKey", privateKey); }
public AesCtrParams(byte[] cb) { Util.requireNonNull("cb", cb); if (cb.length != 16) { throw new IllegalArgumentException("cb.length must be 16"); } this.cb = cb; }
/** * Set the PKCS#11 type of this attribute. * * @param type * The PKCS#11 type of this attribute. * @preconditions (type <> null) * @postconditions */ protected void setType(Long type) { Util.requireNonNull("type", type); ckAttribute.type = type.longValue(); }
/** * The constructor that takes a reference to the module and the slot ID. * * @param slot * The reference to the slot. * @preconditions (module <> null) * @postconditions */ protected Token(Slot slot) { this.slot = Util.requireNonNull("slot", slot); this.useUtf8Encoding = slot.isUseUtf8Encoding(); }