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