public static /*<name>*/SecAttrKeyType/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrKeyType/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrKeyType/*</name>*/.class.getName()); }
@MarshalsPointer public static SecAttrKeyType toObject(Class<SecAttrKeyType> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrKeyType.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setKeyType(SecAttrKeyType keyType) { set(Keys.KeyType(), keyType.value()); return this; } /**
@MarshalsPointer public static List<SecAttrKeyType> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrKeyType> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrKeyType.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(SecAttrKeyType o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
/** * @since Available in iOS 2.0 and later. */ public SecAttrKeyType getKeyType() { if (has(Keys.KeyType())) { CFType val = get(Keys.KeyType(), CFType.class); return SecAttrKeyType.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(List<SecAttrKeyType> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (SecAttrKeyType o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static SecAttrKeyType toObject(Class<SecAttrKeyType> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrKeyType.valueOf(o); } @MarshalsPointer
public static /*<name>*/SecAttrKeyType/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrKeyType/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrKeyType/*</name>*/.class.getName()); }
@MarshalsPointer public static SecAttrKeyType toObject(Class<SecAttrKeyType> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrKeyType.valueOf(o); } @MarshalsPointer
public static /*<name>*/SecAttrKeyType/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrKeyType/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrKeyType/*</name>*/.class.getName()); }
@MarshalsPointer public static List<SecAttrKeyType> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrKeyType> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrKeyType.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(SecAttrKeyType o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<SecAttrKeyType> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrKeyType> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrKeyType.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setKeyType(SecAttrKeyType keyType) { set(Keys.KeyType(), keyType.value()); return this; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttrKeyType getKeyType() { if (has(Keys.KeyType())) { CFType val = get(Keys.KeyType(), CFType.class); return SecAttrKeyType.valueOf(val); } return null; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setKeyType(SecAttrKeyType keyType) { set(Keys.KeyType(), keyType.value()); return this; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttrKeyType getKeyType() { if (has(Keys.KeyType())) { CFType val = get(Keys.KeyType(), CFType.class); return SecAttrKeyType.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(SecAttrKeyType o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<SecAttrKeyType> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (SecAttrKeyType o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }