
MaterialWrapping_Compile.GenerateAndWrapOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-cryptographic-material-providers Show documentation
Show all versions of aws-cryptographic-material-providers Show documentation
The AWS Cryptographic Material Providers Library for Java
// Class GenerateAndWrapOutput
// Dafny class GenerateAndWrapOutput compiled into Java
package MaterialWrapping_Compile;
import software.amazon.cryptography.keystore.internaldafny.types.*;
import software.amazon.cryptography.materialproviders.internaldafny.types.*;
import AwsArnParsing_Compile.*;
import AwsKmsMrkMatchForDecrypt_Compile.*;
import AwsKmsUtils_Compile.*;
import KeyStoreErrorMessages_Compile.*;
import KmsArn_Compile.*;
import Structure_Compile.*;
import KMSKeystoreOperations_Compile.*;
import DDBKeystoreOperations_Compile.*;
import CreateKeys_Compile.*;
import CreateKeyStoreTable_Compile.*;
import GetKeys_Compile.*;
import AwsCryptographyKeyStoreOperations_Compile.*;
import software.amazon.cryptography.keystore.internaldafny.*;
import AlgorithmSuites_Compile.*;
import Materials_Compile.*;
import Keyring_Compile.*;
import MultiKeyring_Compile.*;
import AwsKmsMrkAreUnique_Compile.*;
import Constants_Compile.*;
@SuppressWarnings({"unchecked", "deprecation"})
public class GenerateAndWrapOutput {
public dafny.DafnySequence extends java.lang.Byte> _plaintextMaterial;
public dafny.DafnySequence extends java.lang.Byte> _wrappedMaterial;
public T _wrapInfo;
protected dafny.TypeDescriptor _td_T;
public GenerateAndWrapOutput (dafny.TypeDescriptor _td_T, dafny.DafnySequence extends java.lang.Byte> plaintextMaterial, dafny.DafnySequence extends java.lang.Byte> wrappedMaterial, T wrapInfo) {
this._td_T = _td_T;
this._plaintextMaterial = plaintextMaterial;
this._wrappedMaterial = wrappedMaterial;
this._wrapInfo = wrapInfo;
}
@Override
public boolean equals(Object other) {
if (this == other) return true;
if (other == null) return false;
if (getClass() != other.getClass()) return false;
GenerateAndWrapOutput o = (GenerateAndWrapOutput)other;
return true && java.util.Objects.equals(this._plaintextMaterial, o._plaintextMaterial) && java.util.Objects.equals(this._wrappedMaterial, o._wrappedMaterial) && java.util.Objects.equals(this._wrapInfo, o._wrapInfo);
}
@Override
public int hashCode() {
long hash = 5381;
hash = ((hash << 5) + hash) + 0;
hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._plaintextMaterial);
hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._wrappedMaterial);
hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._wrapInfo);
return (int)hash;
}
@Override
public String toString() {
StringBuilder s = new StringBuilder();
s.append("MaterialWrapping.GenerateAndWrapOutput.GenerateAndWrapOutput");
s.append("(");
s.append(dafny.Helpers.toString(this._plaintextMaterial));
s.append(", ");
s.append(dafny.Helpers.toString(this._wrappedMaterial));
s.append(", ");
s.append(dafny.Helpers.toString(this._wrapInfo));
s.append(")");
return s.toString();
}
public static dafny.TypeDescriptor> _typeDescriptor(dafny.TypeDescriptor _td_T) {
return (dafny.TypeDescriptor>) (dafny.TypeDescriptor>) dafny.TypeDescriptor.>referenceWithInitializer(GenerateAndWrapOutput.class, () -> GenerateAndWrapOutput.Default(_td_T, _td_T.defaultValue()));
}
public static GenerateAndWrapOutput Default(dafny.TypeDescriptor _td_T, T _default_T) {
return MaterialWrapping_Compile.GenerateAndWrapOutput.create(_td_T, dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), _default_T);
}
@Deprecated()
public static GenerateAndWrapOutput Default(T _default_T) {
dafny.TypeDescriptor _td_T = null;
return MaterialWrapping_Compile.GenerateAndWrapOutput.create(_td_T, dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), _default_T);
}
public static GenerateAndWrapOutput create(dafny.TypeDescriptor _td_T, dafny.DafnySequence extends java.lang.Byte> plaintextMaterial, dafny.DafnySequence extends java.lang.Byte> wrappedMaterial, T wrapInfo) {
return new GenerateAndWrapOutput(_td_T, plaintextMaterial, wrappedMaterial, wrapInfo);
}
@Deprecated()
public static GenerateAndWrapOutput create(dafny.DafnySequence extends java.lang.Byte> plaintextMaterial, dafny.DafnySequence extends java.lang.Byte> wrappedMaterial, T wrapInfo) {
return new GenerateAndWrapOutput(null, plaintextMaterial, wrappedMaterial, wrapInfo);
}
public static GenerateAndWrapOutput create_GenerateAndWrapOutput(dafny.TypeDescriptor _td_T, dafny.DafnySequence extends java.lang.Byte> plaintextMaterial, dafny.DafnySequence extends java.lang.Byte> wrappedMaterial, T wrapInfo) {
return create(_td_T, plaintextMaterial, wrappedMaterial, wrapInfo);
}
@Deprecated()
public static GenerateAndWrapOutput create_GenerateAndWrapOutput(dafny.DafnySequence extends java.lang.Byte> plaintextMaterial, dafny.DafnySequence extends java.lang.Byte> wrappedMaterial, T wrapInfo) {
return create(null, plaintextMaterial, wrappedMaterial, wrapInfo);
}
public boolean is_GenerateAndWrapOutput() { return true; }
public dafny.DafnySequence extends java.lang.Byte> dtor_plaintextMaterial() {
return this._plaintextMaterial;
}
public dafny.DafnySequence extends java.lang.Byte> dtor_wrappedMaterial() {
return this._wrappedMaterial;
}
public T dtor_wrapInfo() {
return this._wrapInfo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy