Menu

#1 Support getters/setters in BIT STRINGs

open
nobody
None
5
2001-10-09
2001-10-09
Mark Nelson
No

Hello,

For a BIT STRING object like this:

KdcOptions ::= BIT STRING {
reserved(0),
forwardable(1),
forwarded(2),
enc-tkt-in-skey(28),
renew(30),
validate(31)
}

...it would be good to be able to set/clear the flags
with the names in the BIT STRING:

KdcOptions kdcOptions = new KdcOptions();
kdcOptions.setReserved( true );
kdcOptions.setValidate( false );

This would make the code using this structure much
more self-documenting.

Thanks,
Mark

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.