src/java.security.jgss/share/classes/sun/security/jgss/wrapper/GSSCredElement.java
changeset 58331 e4ce29f6094e
parent 47216 71c04702a3d5
equal deleted inserted replaced
58330:de8e08015d51 58331:e4ce29f6094e
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    59             }
    59             }
    60         }
    60         }
    61     }
    61     }
    62 
    62 
    63     // Construct delegation cred using the actual context mech and srcName
    63     // Construct delegation cred using the actual context mech and srcName
       
    64     // Warning: called by NativeUtil.c
    64     GSSCredElement(long pCredentials, GSSNameElement srcName, Oid mech)
    65     GSSCredElement(long pCredentials, GSSNameElement srcName, Oid mech)
    65         throws GSSException {
    66         throws GSSException {
    66         pCred = pCredentials;
    67         pCred = pCredentials;
    67         cStub = GSSLibStub.getInstance(mech);
    68         cStub = GSSLibStub.getInstance(mech);
    68         usage = GSSCredential.INITIATE_ONLY;
    69         usage = GSSCredential.INITIATE_ONLY;