org.rococoa.cocoa.security
Class SecKeyImportExportParameters

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure<SecKeyImportExportParameters,SecKeyImportExportParameters.ByValue,SecKeyImportExportParameters.ByReference>
          extended by org.rococoa.cocoa.security.SecKeyImportExportParameters
All Implemented Interfaces:
StructureType, StructureTypeDependent, Comparable<Structure<SecKeyImportExportParameters,SecKeyImportExportParameters.ByValue,SecKeyImportExportParameters.ByReference>>
Direct Known Subclasses:
SecKeyImportExportParameters.ByReference, SecKeyImportExportParameters.ByValue

public class SecKeyImportExportParameters
extends Structure<SecKeyImportExportParameters,SecKeyImportExportParameters.ByValue,SecKeyImportExportParameters.ByReference>

native declaration : /System/Library/Frameworks/Security.framework/Headers/SecImportExport.h
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.


Nested Class Summary
static class SecKeyImportExportParameters.ByReference
           
static class SecKeyImportExportParameters.ByValue
           
 
Field Summary
 SecurityLibrary.OpaqueSecAccessRef accessRef
          for import only
specifies the initial ACL of imported
key(s)
C type : SecAccessRef
 int flags
           
 int keyAttributes
          CSSM_KEYATTR_PERMANENT, etc.
 int keyUsage
          CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.
 int version
          for import and export
SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE
 
Constructor Summary
SecKeyImportExportParameters()
           
SecKeyImportExportParameters(int version, int flags, SecurityLibrary.OpaqueSecAccessRef accessRef, int keyUsage, int keyAttributes)
           
 
Method Summary
static SecKeyImportExportParameters[] newArray(int arrayLength)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write
 
Methods inherited from class com.sun.jna.Structure
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ochafik.lang.jnaerator.runtime.StructureType
getPointer, size
 

Field Detail

version

public int version
for import and export
SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION


flags

public int flags
See Also:
SecKeyImportExportFlags bits
C type : SecKeyImportExportFlags

accessRef

public SecurityLibrary.OpaqueSecAccessRef accessRef
for import only
specifies the initial ACL of imported
key(s)
C type : SecAccessRef


keyUsage

public int keyUsage
CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.
C type : CSSM_KEYUSE


keyAttributes

public int keyAttributes
CSSM_KEYATTR_PERMANENT, etc.
C type : CSSM_KEYATTR_FLAGS

Constructor Detail

SecKeyImportExportParameters

public SecKeyImportExportParameters()

SecKeyImportExportParameters

public SecKeyImportExportParameters(int version,
                                    int flags,
                                    SecurityLibrary.OpaqueSecAccessRef accessRef,
                                    int keyUsage,
                                    int keyAttributes)
Parameters:
version - for import and export
SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION
flags - @see SecKeyImportExportFlags
SecKeyImportExportFlags bits
C type : SecKeyImportExportFlags
accessRef - for import only
specifies the initial ACL of imported
key(s)
C type : SecAccessRef
keyUsage - CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.
C type : CSSM_KEYUSE
keyAttributes - CSSM_KEYATTR_PERMANENT, etc.
C type : CSSM_KEYATTR_FLAGS
Method Detail

newArray

public static SecKeyImportExportParameters[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.