Skip to content

Commit

Permalink
additional formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Aug 31, 2012
1 parent ad7af51 commit e4ae421
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/java/edu/mit/jgss/DerUtil.java
Expand Up @@ -44,7 +44,8 @@ public class DerUtil {
* object in order to be able to pass them back to the underlying
* native GSSAPI implementation.
*/
public static DerHeader getHeader(InputStream in) throws GSSException, IOException {
public static DerHeader getHeader(InputStream in)
throws GSSException, IOException {

int length = 0;
int tag, b;
Expand Down
12 changes: 8 additions & 4 deletions src/java/edu/mit/jgss/GSSManagerImpl.java
Expand Up @@ -57,15 +57,17 @@ public Oid[] getMechsForName(Oid nameType) {
return null;
}

public GSSName createName(String nameStr, Oid nameType) throws GSSException {
public GSSName createName(String nameStr, Oid nameType)
throws GSSException {

GSSNameImpl newName = new GSSNameImpl();
newName.importName(nameStr, nameType);
return newName;

}

public GSSName createName(byte[] name, Oid nameType) throws GSSException {
public GSSName createName(byte[] name, Oid nameType)
throws GSSException {

GSSNameImpl newName = new GSSNameImpl();
newName.importName(name, nameType);
Expand All @@ -82,15 +84,17 @@ public GSSName createName(String nameStr, Oid nameType, Oid mech)

}

public GSSName createName(byte[] name, Oid nameType, Oid mech) throws GSSException {
public GSSName createName(byte[] name, Oid nameType, Oid mech)
throws GSSException {

GSSName newName = createName(name, nameType);
GSSName canonicalizedName = newName.canonicalize(mech);
return canonicalizedName;

}

public GSSCredential createCredential(int usage) throws GSSException {
public GSSCredential createCredential(int usage)
throws GSSException {

if (usage != GSSCredential.INITIATE_AND_ACCEPT ||
usage != GSSCredential.INITIATE_ONLY ||
Expand Down
6 changes: 4 additions & 2 deletions src/java/edu/mit/jgss/GSSNameImpl.java
Expand Up @@ -62,7 +62,8 @@ public boolean equals(GSSName another) throws GSSException {

if (maj_status != gsswrapper.GSS_S_COMPLETE) {
if (DEBUG_ERR == true)
System.out.println("gss_compare_name failed... maj_status = " + maj_status);
System.out.println("gss_compare_name failed... maj_status = "
+ maj_status);
throw new GSSExceptionImpl((int)maj_status, (int)min_status[0]);
}

Expand Down Expand Up @@ -130,7 +131,8 @@ public GSSName canonicalize(Oid mech) throws GSSException {
ret = canonicalName.setInternGSSName(tmpName);
if (ret != 0) {
if (DEBUG_ERR == true)
System.err.println("setInternGSSName failed after canonicalize");
System.err.println("setInternGSSName failed after " +
"canonicalize");
throw new GSSExceptionImpl((int)maj_status, (int)min_status[0]);
}

Expand Down

0 comments on commit e4ae421

Please sign in to comment.