com.mindoo.domino.jna.internal.structs.KFM_PASSWORDStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class KFM_PASSWORDStruct extends BaseStructure {
/** Type of hash. This value should be */
public byte Type;
/**
* Hashed password
* C type : BYTE[48]
*/
public byte[] HashedPassword = new byte[48];
public KFM_PASSWORDStruct() {
super();
}
public static KFM_PASSWORDStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public KFM_PASSWORDStruct run() {
return new KFM_PASSWORDStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("Type", "HashedPassword");
}
/**
* @param Type Type of hash. This value should be
* @param HashedPassword Hashed password
* C type : BYTE[48]
*/
public KFM_PASSWORDStruct(byte Type, byte HashedPassword[]) {
super();
this.Type = Type;
if ((HashedPassword.length != this.HashedPassword.length))
throw new IllegalArgumentException("Wrong array size !");
this.HashedPassword = HashedPassword;
}
public KFM_PASSWORDStruct(Pointer peer) {
super(peer);
}
public static KFM_PASSWORDStruct newInstance(Pointer ptr) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public KFM_PASSWORDStruct run() {
return new KFM_PASSWORDStruct(ptr);
}
});
}
public static class ByReference extends KFM_PASSWORDStruct implements Structure.ByReference {
};
public static class ByValue extends KFM_PASSWORDStruct implements Structure.ByValue {
};
public static KFM_PASSWORDStruct.ByReference newInstanceByReference() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public KFM_PASSWORDStruct.ByReference run() {
return new KFM_PASSWORDStruct.ByReference();
}
});
}
}