1 package org.openmdx.security.realm1.cci; 14 15 public class CredentialImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Credential { 18 19 public CredentialImpl( 20 org.openmdx.base.accessor.generic.cci.Object_1_0 object, 21 javax.jmi.reflect.RefClass refClass 22 ) { 23 super(object, refClass); 24 } 25 26 public boolean isLocked( 30 ) { 31 return isLocked(0); 32 } 33 34 protected boolean isLocked( 35 int index 36 ) { 37 return ((Boolean )this.refGetValue("org:openmdx:security:realm1:Credential:locked", index)).booleanValue(); 38 } 39 40 public void setLocked( 44 boolean newValue 45 ) { 46 setLocked(0, newValue); 47 } 48 49 protected void setLocked( 50 int index, 51 boolean newValue 52 ) { 53 refSetValue("org:openmdx:security:realm1:Credential:locked", index, new Boolean (newValue)); 54 } 55 public org.openmdx.security.realm1.cci.ValidationResult request( 59 org.openmdx.base.cci.Void params 60 ) throws javax.jmi.reflect.RefException { 61 java.util.List args = new java.util.ArrayList (); 62 args.add(params); 63 return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation( 64 "org:openmdx:security:realm1:Credential:request", 65 args 66 ); 67 } 68 69 public org.openmdx.security.realm1.cci.ValidationResult request( 70 ) throws javax.jmi.reflect.RefException { 71 return request( 72 ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid( 73 ) 74 ); 75 } 76 77 public org.openmdx.security.realm1.cci.Subject getSubject( 81 ) { 82 return (org.openmdx.security.realm1.cci.Subject)refGetValue( 83 "org:openmdx:security:realm1:Credential:subject" 84 ); 85 } 86 87 public void setSubject( 91 org.openmdx.security.realm1.cci.Subject newValue 92 ) { 93 refSetValue( 94 "org:openmdx:security:realm1:Credential:subject", 95 newValue 96 ); 97 } 98 99 public org.openmdx.security.realm1.cci.ValidationResult validate( 103 org.openmdx.security.realm1.cci.CredentialValidateParams params 104 ) throws javax.jmi.reflect.RefException { 105 java.util.List args = new java.util.ArrayList (); 106 args.add(params); 107 return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation( 108 "org:openmdx:security:realm1:Credential:validate", 109 args 110 ); 111 } 112 113 public org.openmdx.security.realm1.cci.ValidationResult validate( 114 byte[] state 115 , byte[] value 116 ) throws javax.jmi.reflect.RefException { 117 return validate( 118 ((org.openmdx.security.realm1.cci.realm1Package)refOutermostPackage().refPackage("org:openmdx:security:realm1")).createCredentialValidateParams( 119 state 120 , value 121 ) 122 ); 123 } 124 125 } 129 | Popular Tags |