/** * @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 4.0 and later. */ public SecAttrAccessible getAccessible() { if (has(Keys.Accessible())) { CFType val = get(Keys.Accessible(), CFType.class); return SecAttrAccessible.valueOf(val); } return null; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttributes getPrivateAttributes() { if (has(Keys.PrivateAttributes())) { CFDictionary val = get(Keys.PrivateAttributes(), CFDictionary.class); return new SecAttributes(val); } return null; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttributes getPublicAttributes() { if (has(Keys.PublicAttributes())) { CFDictionary val = get(Keys.PublicAttributes(), CFDictionary.class); return new SecAttributes(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public SecAttributes setAccessible(SecAttrAccessible accessible) { set(Keys.Accessible(), accessible.value()); return this; } /**
/** * @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 SecKeyParameters setPublicAttributes(SecAttributes publicAttributes) { set(Keys.PublicAttributes(), publicAttributes.getDictionary()); return this; } /*</methods>*/
/** * @since Available in iOS 2.0 and later. */ public SecKeyParameters setPrivateAttributes(SecAttributes privateAttributes) { set(Keys.PrivateAttributes(), privateAttributes.getDictionary()); return this; } /**
/** * @since Available in iOS 8.0 and later. */ public SecAttributes setAccessControl(SecAccessControl accessControl) { set(Keys.AccessControl(), accessControl); return this; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setCreationDate(NSDate creationDate) { set(Keys.CreationDate(), creationDate); return this; } /**