Searched refs:scope (Results 1 - 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/security/
H A DIdentityScope.java34 * <p>This class represents a scope for identities. It is an Identity
35 * itself, and therefore has a name and can have a scope. It can also
46 * there can only be one copy of one key per scope. For example, suppose
49 * associated certificates. It is named in the scope using the name
50 * "Acme Software". No other named Identity in the scope has the same
71 /* The system's scope */
72 private static IdentityScope scope; field in class:IdentityScope
74 // initialize the system scope
80 return Security.getProperty("system.scope");
90 scope
125 IdentityScope(String name, IdentityScope scope) argument
163 setSystemScope(IdentityScope scope) argument
[all...]
H A DIdentity.java40 * specified to have a particular scope, then the name and public
41 * key of the Identity are unique within that scope.
88 * The scope of the identity.
92 IdentityScope scope; field in class:Identity
109 * Constructs an identity with the specified name and scope.
112 * @param scope the scope of the identity.
115 * with the same name in the scope.
117 public Identity(String name, IdentityScope scope) throws argument
120 if (scope !
[all...]
H A DSigner.java78 * Creates a signer with the specified identity name and scope.
82 * @param scope the scope of the identity.
85 * with the same name in the scope.
87 public Signer(String name, IdentityScope scope) argument
89 super(name, scope);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DSignerStub.java53 * Constructor, sets given name and scope
56 * @param scope
59 public SignerStub(String name, IdentityScope scope) argument
61 super(name, scope);
H A DIdentityScopeStub.java56 * @param scope
59 public IdentityScopeStub(String name, IdentityScope scope) argument
61 super(name, scope);
117 * Sets the system's identity scope
118 * @param scope
120 public static void mySetSystemScope(IdentityScope scope) { argument
122 IdentityScope.setSystemScope(scope);
H A DIdentityStub.java59 * @param scope
63 public IdentityStub(String name, IdentityScope scope) argument
65 super(name, scope);
H A DSystemScope.java67 public SystemScope(String name, IdentityScope scope) argument
69 super(name, scope);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentityScopeTest.java75 * check that void IdentityScope(String, IdentityScope) creates instance with given name and within given scope
78 IdentityScope scope = new IdentityScopeStub("my scope");
79 is = new IdentityScopeStub("Aleksei Semenov", scope);
82 assertEquals(scope.getName(), is.getScope().getName());
89 // There is no default system scope installed.
90 String name = Security.getProperty("system.scope");
92 IdentityScope scope = IdentityScope.getSystemScope();
93 assertNull(scope);
102 // default implementation is specified by security property system.scope
[all...]
H A DIdentityScope2Test.java64 public IdentityScopeSubclass(String name, IdentityScope scope) argument
66 super(name, scope);
101 "This Identity is already contained in the scope");
104 "This Identity's public key already exists in the scope");
111 "This Identity is not contained in the scope");
149 IdentityScope iss = new IdentityScopeSubclass("test scope");
319 IdentityScope scope = IdentityScope.getSystemScope();
321 scope.getIdentity((String) null);
H A DIdentity2Test.java132 public IdentitySubclass(String name, IdentityScope scope) argument
134 super(name, scope);
203 IdentityScope scope = new IdentityScopeSubclass();
204 IdentitySubclass sub = new IdentitySubclass("test", scope);
206 assertEquals("Wrong Scope returned", scope, returnedScope);
/libcore/ojluni/src/main/native/
H A Dnet_util.c141 jint scope; local
159 scope = getScopeID(him);
160 (*env)->SetIntField(env, iaObj, ia6_scopeidID, scope);
161 if (scope > 0)
217 int scope; local
223 scope = (*env)->GetIntField(env, iaObj, ia6_scopeidID);
225 if (NET_IsEqual(caddrNew, caddrCur) && cmpScopeID(scope, him)) {
H A DInet6AddressImpl.c263 jint scope,
300 // Android-change: Don't try and figure out a default scope ID if one isn't
304 if (scope > 0)
305 him6.sin6_scope_id = scope;
261 Inet6AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint scope, jint timeout, jbyteArray ifArray, jint ttl, jint if_scope) argument
H A Dnet_util_md.c260 int cmpScopeID (unsigned int scope, struct sockaddr *him) { argument
263 return 1; /* scope is ignored for comparison in 2.2 kernel */
265 return hext->sin6_scope_id == scope;
275 int cmpScopeID (unsigned int scope, struct sockaddr *him) { argument
277 return him6->sin6_scope_id == scope;
643 int plen, scope, dad_status, if_idx; local
649 &if_idx, &plen, &scope, &dad_status, devname) == 13) {
806 // XXXBSD: should we do something with scope id here ? see below linux comment
H A DNetworkInterface.c580 int scope=0; local
590 scope = ((struct sockaddr_in6*)addrP->addr)->sin6_scope_id;
592 if (scope != 0) { /* zero is default value, no need to set */
593 (*env)->SetIntField(env, iaObj, ia6_scopeidID, scope);
/libcore/ojluni/src/main/java/java/net/
H A DInet6AddressImpl.java144 int scope = -1;
172 scope = ((Inet6Address) addr).getScopeId();
180 return isReachable0(addr.getAddress(), scope, timeout, ifaddr, ttl, netif_scope);
219 private native boolean isReachable0(byte[] addr, int scope, int timeout, byte[] inf, int ttl, int if_scope) throws IOException; argument
/libcore/ojluni/src/main/java/java/sql/
H A DDatabaseMetaData.java1619 * <LI><B>SCOPE_CATALOG</B> String => catalog of table that is the scope
1621 * <LI><B>SCOPE_SCHEMA</B> String => schema of table that is the scope
1623 * <LI><B>SCOPE_TABLE</B> String => table name that this the scope
1787 * <LI><B>SCOPE</B> short => actual scope of result
1827 * @param scope the scope of interest; use same values as SCOPE
1833 String table, int scope, boolean nullable) throws SQLException;
1836 * Indicates that the scope of the best row identifier is
1848 * Indicates that the scope of the best row identifier is
1859 * Indicates that the scope o
1832 getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) argument
[all...]

Completed in 430 milliseconds