org.rococoa.cocoa.security
Class SecKeyImportExportParameters

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.security.SecKeyImportExportParameters
Direct Known Subclasses:
SecKeyImportExportParameters.ByReference, SecKeyImportExportParameters.ByValue

public class SecKeyImportExportParameters
extends com.ochafik.lang.jnaerator.runtime.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.


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)
 int flags
           
 int keyAttributes
           
 int keyUsage
          CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.
 Pointer passphrase
          kSecFormatPKCS12, kSecFormatWrapped*
formats only.
 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, CALCULATE_SIZE
 
Constructor Summary
SecKeyImportExportParameters()
           
SecKeyImportExportParameters(int version, int flags, Pointer passphrase, SecurityLibrary.OpaqueSecAccessRef accessRef, int keyUsage, int keyAttributes)
           
 
Method Summary
 SecKeyImportExportParameters.ByReference byReference()
           
 SecKeyImportExportParameters.ByValue byValue()
           
 SecKeyImportExportParameters clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

version

public int version
for import and export
SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION


flags

public int flags
See Also:
SecKeyImportExportFlags bits

passphrase

public Pointer passphrase
kSecFormatPKCS12, kSecFormatWrapped*
formats only. Legal types are
CFStringRef and CFDataRef.


accessRef

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


keyUsage

public int keyUsage
CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.


keyAttributes

public int keyAttributes
Constructor Detail

SecKeyImportExportParameters

public SecKeyImportExportParameters()

SecKeyImportExportParameters

public SecKeyImportExportParameters(int version,
                                    int flags,
                                    Pointer passphrase,
                                    SecurityLibrary.OpaqueSecAccessRef accessRef,
                                    int keyUsage,
                                    int keyAttributes)
Parameters:
version - for import and export
SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION
flags - @see SecKeyImportExportFlags
SecKeyImportExportFlags bits
passphrase - kSecFormatPKCS12, kSecFormatWrapped*
formats only. Legal types are
CFStringRef and CFDataRef.
accessRef - for import only
specifies the initial ACL of imported
key(s)
keyUsage - CSSM_KEYUSE_DECRYPT, CSSM_KEYUSE_SIGN,
etc.
keyAttributes - CSSM_KEYATTR_PERMANENT, etc.
Method Detail

byReference

public SecKeyImportExportParameters.ByReference byReference()

byValue

public SecKeyImportExportParameters.ByValue byValue()

clone

public SecKeyImportExportParameters clone()
Overrides:
clone in class Object